Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1") translateModel(Modelica.Blocks.Examples.RealNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch.u.1.|multiSwitch.u.2.",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009513/0.0009513, allocations: 180.6 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.421/1.421, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008074/0.0008075, allocations: 98.28 kB / 270.9 MB, free: 8.348 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003161/0.0003161, allocations: 8 kB / 327 MB, free: 204 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2522, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.RealNetwork1): time 0.001843/0.2541, allocations: 1.513 MB / 376.1 MB, free: 44.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009205/0.255, allocations: 0.5914 MB / 376.6 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.2551, allocations: 11.25 kB / 376.7 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.2553, allocations: 13.02 kB / 376.7 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001285/0.2554, allocations: 28.28 kB / 376.7 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002292/0.2557, allocations: 53.5 kB / 376.7 MB, free: 43.69 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001737/0.2559, allocations: 154.4 kB / 376.9 MB, free: 43.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.256, allocations: 51.64 kB / 376.9 MB, free: 43.57 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.898e-05/0.2561, allocations: 58.05 kB / 377 MB, free: 43.54 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001118/0.2563, allocations: 71.88 kB / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.2563, allocations: 5.438 kB / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.317e-05/0.2564, allocations: 7.906 kB / 377.1 MB, free: 43.48 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.498e-05/0.2564, allocations: 34 kB / 377.1 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.728e-05/0.2565, allocations: 48.14 kB / 377.2 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001545/0.2566, allocations: 118.4 kB / 377.3 MB, free: 43.34 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.2567, allocations: 0 / 377.3 MB, free: 43.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2567, allocations: 0 / 377.3 MB, free: 43.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.2567, allocations: 0 / 377.3 MB, free: 43.34 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.0007841/0.2575, allocations: 499.9 kB / 377.8 MB, free: 42.88 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.2575, allocations: 9.094 kB / 377.8 MB, free: 42.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.207e-05/0.2576, allocations: 21.69 kB / 377.8 MB, free: 42.86 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.2578, allocations: 231.2 kB / 378 MB, free: 42.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.519e-05/0.2578, allocations: 21.95 kB / 378.1 MB, free: 42.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.084e-05/0.2579, allocations: 13.62 kB / 378.1 MB, free: 42.6 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003611/0.2582, allocations: 197.5 kB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-06/0.2582, allocations: 0 / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.2583, allocations: 6.719 kB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.051e-05/0.2583, allocations: 8.656 kB / 378.3 MB, free: 42.46 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003206/0.2586, allocations: 148.8 kB / 378.4 MB, free: 42.4 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001052/0.2597, allocations: 0.7929 MB / 379.2 MB, free: 41.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003015/0.26, allocations: 168.5 kB / 379.4 MB, free: 41.58 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001478/0.2602, allocations: 77.8 kB / 379.5 MB, free: 41.54 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.2602, allocations: 15.42 kB / 379.5 MB, free: 41.53 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002427/0.2605, allocations: 152.3 kB / 379.6 MB, free: 41.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.482e-06/0.2605, allocations: 0 / 379.6 MB, free: 41.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005432/0.261, allocations: 267.8 kB / 379.9 MB, free: 41.28 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.2611, allocations: 88.47 kB / 380 MB, free: 41.18 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001555/0.2612, allocations: 197 kB / 380.2 MB, free: 41.03 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.796e-05/0.2613, allocations: 31.86 kB / 380.2 MB, free: 41 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.568e-05/0.2613, allocations: 146.3 kB / 380.3 MB, free: 40.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.2614, allocations: 38.08 kB / 380.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.158e-06/0.2614, allocations: 4 kB / 380.4 MB, free: 40.82 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.84e-05/0.2614, allocations: 328.3 kB / 380.7 MB, free: 40.5 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.2616, allocations: 74.98 kB / 380.8 MB, free: 40.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001623/0.2618, allocations: 135.7 kB / 380.9 MB, free: 40.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001615/0.2619, allocations: 92.58 kB / 381 MB, free: 40.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2619, allocations: 1.172 kB / 381 MB, free: 40.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003971/0.2623, allocations: 247.4 kB / 381.2 MB, free: 40.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.585e-05/0.2624, allocations: 5.156 kB / 381.2 MB, free: 40.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.051e-06/0.2624, allocations: 1.312 kB / 381.2 MB, free: 40.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.2624, allocations: 3.938 kB / 381.2 MB, free: 40.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.2626, allocations: 42.28 kB / 381.3 MB, free: 40.18 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.2626, allocations: 2.594 kB / 381.3 MB, free: 40.18 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001593/0.2628, allocations: 46.2 kB / 381.3 MB, free: 40.15 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.727e-05/0.2628, allocations: 7.219 kB / 381.3 MB, free: 40.15 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.multiSwitch.u[1],$PRE.multiSwitch.u[2],$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001015/0.2629, allocations: 139.7 kB / 381.5 MB, free: 40.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.591e-05/0.2629, allocations: 19.62 kB / 381.5 MB, free: 40 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004153/0.2634, allocations: 226.4 kB / 381.7 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2634, allocations: 2.438 kB / 381.7 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.528e-06/0.2634, allocations: 1.688 kB / 381.7 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.2634, allocations: 0 / 381.7 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002026/0.2636, allocations: 270.9 kB / 382 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.2636, allocations: 1.188 kB / 382 MB, free: 39.61 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001173/0.2637, allocations: 30.2 kB / 382 MB, free: 39.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.2637, allocations: 4 kB / 382 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.383e-05/0.2638, allocations: 10.73 kB / 382 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.2638, allocations: 0.9688 kB / 382 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.2638, allocations: 0 / 382 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003588/0.2641, allocations: 234.3 kB / 382.3 MB, free: 39.44 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.829e-05/0.2642, allocations: 93.86 kB / 382.3 MB, free: 39.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.59e-05/0.2642, allocations: 6.312 kB / 382.4 MB, free: 39.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001344/0.2644, allocations: 22.81 kB / 382.4 MB, free: 39.32 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.9e-05/0.2644, allocations: 15.02 kB / 382.4 MB, free: 39.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.296e-05/0.2644, allocations: 12.17 kB / 382.4 MB, free: 39.3 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001091/0.2646, allocations: 150 kB / 382.5 MB, free: 39.19 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.1e-07/0.2646, allocations: 0 / 382.5 MB, free: 39.19 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003064/0.2649, allocations: 37.19 kB / 382.6 MB, free: 39.18 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition2,$whenCondition1,booleanPulse1.pulseStart,multiSwitch.u[1],multiSwitch.u[2],multiSwitch.firstActiveIndex,booleanPulse2.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001521/0.265, allocations: 108.2 kB / 382.7 MB, free: 39.09 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003869/0.2654, allocations: 176.9 kB / 382.9 MB, free: 39.02 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.2654, allocations: 1.375 kB / 382.9 MB, free: 39.02 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001814/0.2656, allocations: 89.05 kB / 383 MB, free: 38.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003299/0.266, allocations: 45.62 kB / 383 MB, free: 38.96 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000664/0.2666, allocations: 458.4 kB / 383.4 MB, free: 38.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001771/0.2668, allocations: 0.7327 MB / 384.2 MB, free: 37.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.388e-05/0.2669, allocations: 25.53 kB / 384.2 MB, free: 37.87 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2669, allocations: 0 / 384.2 MB, free: 37.87 MB / 298.7 MB Notification: Performance of Templates: time 0.004127/0.271, allocations: 2.405 MB / 386.6 MB, free: 36.32 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/RealNetwork1/RealNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.RealNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches