Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.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.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001337/0.001337, allocations: 179.2 kB / 16.41 MB, free: 5.707 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.403/1.403, 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.0008691/0.0008691, allocations: 87.8 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003498/0.00035, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.2575, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.001933/0.2595, allocations: 1.486 MB / 376 MB, free: 44.26 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001068/0.2606, allocations: 0.6238 MB / 376.6 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001145/0.2607, allocations: 3.031 kB / 376.6 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001127/0.2608, allocations: 21.81 kB / 376.7 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001302/0.261, allocations: 22.86 kB / 376.7 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002592/0.2612, allocations: 68.8 kB / 376.8 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002014/0.2615, allocations: 149 kB / 376.9 MB, free: 43.59 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001748/0.2616, allocations: 64.09 kB / 377 MB, free: 43.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001092/0.2618, allocations: 58.19 kB / 377 MB, free: 43.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.2619, allocations: 74.39 kB / 377.1 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.648e-05/0.2619, allocations: 5.812 kB / 377.1 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.73e-05/0.262, allocations: 12.5 kB / 377.1 MB, free: 43.46 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.256e-05/0.2621, allocations: 32.94 kB / 377.1 MB, free: 43.44 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.189e-05/0.2621, allocations: 55.83 kB / 377.2 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001528/0.2623, allocations: 114.4 kB / 377.3 MB, free: 43.31 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.2623, allocations: 0 / 377.3 MB, free: 43.31 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.2623, allocations: 1.094 kB / 377.3 MB, free: 43.31 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2623, allocations: 0 / 377.3 MB, free: 43.31 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.0008147/0.2631, allocations: 492.7 kB / 377.8 MB, free: 42.85 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2632, allocations: 9.281 kB / 377.8 MB, free: 42.85 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.951e-05/0.2633, allocations: 27.11 kB / 377.8 MB, free: 42.84 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002421/0.2635, allocations: 236.7 kB / 378.1 MB, free: 42.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.099e-05/0.2635, allocations: 14.58 kB / 378.1 MB, free: 42.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.328e-05/0.2636, allocations: 19.06 kB / 378.1 MB, free: 42.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003971/0.264, allocations: 219.5 kB / 378.3 MB, free: 42.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.264, allocations: 4 kB / 378.3 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.39e-05/0.264, allocations: 10.08 kB / 378.3 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.522e-05/0.2641, allocations: 6.75 kB / 378.3 MB, free: 42.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003361/0.2644, allocations: 151 kB / 378.5 MB, free: 42.34 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001008/0.2654, allocations: 0.7898 MB / 379.3 MB, free: 41.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006651/0.2661, allocations: 219.5 kB / 379.5 MB, free: 41.52 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.2663, allocations: 64.42 kB / 379.5 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.24e-05/0.2663, allocations: 2.188 kB / 379.5 MB, free: 41.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002697/0.2666, allocations: 157.8 kB / 379.7 MB, free: 41.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.894e-06/0.2666, allocations: 0 / 379.7 MB, free: 41.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006427/0.2673, allocations: 258.1 kB / 380 MB, free: 41.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.667e-05/0.2673, allocations: 79.8 kB / 380 MB, free: 41.14 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.2675, allocations: 225.1 kB / 380.2 MB, free: 40.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.018e-05/0.2676, allocations: 30.77 kB / 380.3 MB, free: 40.93 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.403e-05/0.2676, allocations: 131.5 kB / 380.4 MB, free: 40.81 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.285e-05/0.2677, allocations: 42 kB / 380.4 MB, free: 40.77 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.121e-05/0.2677, allocations: 4 kB / 380.5 MB, free: 40.77 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.452e-05/0.2678, allocations: 332.2 kB / 380.8 MB, free: 40.44 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001599/0.2679, allocations: 76.61 kB / 380.9 MB, free: 40.41 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001873/0.2681, allocations: 135.4 kB / 381 MB, free: 40.29 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001801/0.2683, allocations: 82.72 kB / 381.1 MB, free: 40.26 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.2683, allocations: 1 kB / 381.1 MB, free: 40.26 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004722/0.2688, allocations: 265.8 kB / 381.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.2689, allocations: 5.875 kB / 381.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.2689, allocations: 2.344 kB / 381.3 MB, free: 40.12 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.081e-05/0.2689, allocations: 7.844 kB / 381.3 MB, free: 40.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.2691, allocations: 41.06 kB / 381.4 MB, free: 40.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.2691, allocations: 4.281 kB / 381.4 MB, free: 40.1 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001853/0.2693, allocations: 43.06 kB / 381.4 MB, free: 40.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.116e-05/0.2693, allocations: 15.5 kB / 381.4 MB, free: 40.07 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 25 (sum.u[1],product.u[1],product.u[2],product.y,$PRE.triggeredAdd.y,triggeredAdd.y,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.booleanPulse1.pulseStart,booleanPulse1.pulseStart,multiSwitch1.u[1],multiSwitch1.u[2],$PRE.multiSwitch1.y,multiSwitch1.y,multiSwitch1.firstActiveIndex,$PRE.booleanPulse2.pulseStart,booleanPulse2.pulseStart,multiSwitch1.expr[1],multiSwitch1.expr[2],triggeredAdd.local_set,triggeredAdd.local_reset,showValue2.number,showValue1.number,showValue.number) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001304/0.2695, allocations: 156.6 kB / 381.6 MB, free: 39.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.042e-05/0.2695, allocations: 16.75 kB / 381.6 MB, free: 39.92 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002497/0.2698, allocations: 129.3 kB / 381.7 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-06/0.2698, allocations: 2.094 kB / 381.7 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.2698, allocations: 1.375 kB / 381.7 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.2698, allocations: 0 / 381.7 MB, free: 39.84 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005426/0.2704, allocations: 482.1 kB / 382.2 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.284e-06/0.2704, allocations: 320 / 382.2 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001225/0.2705, allocations: 23.33 kB / 382.2 MB, free: 39.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.595e-06/0.2705, allocations: 13.03 kB / 382.2 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.2705, allocations: 6.938 kB / 382.3 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2706, allocations: 0 / 382.3 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2706, allocations: 1.469 kB / 382.3 MB, free: 39.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003957/0.271, allocations: 295.5 kB / 382.5 MB, free: 39.18 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.919e-05/0.271, allocations: 94.17 kB / 382.6 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.927e-05/0.271, allocations: 5.297 kB / 382.6 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001745/0.2712, allocations: 26.98 kB / 382.7 MB, free: 39.05 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/0.2713, allocations: 24.59 kB / 382.7 MB, free: 39.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.09e-05/0.2713, allocations: 12.11 kB / 382.7 MB, free: 39.03 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001038/0.2714, allocations: 146.8 kB / 382.8 MB, free: 38.92 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2715, allocations: 1.094 kB / 382.8 MB, free: 38.92 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002825/0.2717, allocations: 43.3 kB / 382.9 MB, free: 38.91 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: 14 (multiSwitch1.u[1],$whenCondition3,$whenCondition2,$whenCondition1,triggeredAdd.y,booleanPulse1.pulseStart,multiSwitch1.u[2],multiSwitch1.y,multiSwitch1.firstActiveIndex,booleanPulse2.pulseStart,sum.u[1],product.u[1],product.u[2],product.y) * Number of discrete states: 2 (multiSwitch1.y,triggeredAdd.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001371/0.2719, allocations: 110.6 kB / 383 MB, free: 38.81 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003923/0.2723, allocations: 171 kB / 383.2 MB, free: 38.75 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2723, allocations: 1.375 kB / 383.2 MB, free: 38.75 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.2725, allocations: 88.77 kB / 383.3 MB, free: 38.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003358/0.2728, allocations: 33.14 kB / 383.3 MB, free: 38.69 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006644/0.2735, allocations: 436.6 kB / 383.7 MB, free: 38.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001655/0.2737, allocations: 0.7353 MB / 384.4 MB, free: 37.62 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.264e-05/0.2738, allocations: 18.06 kB / 384.5 MB, free: 37.62 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2738, allocations: 0 / 384.5 MB, free: 37.62 MB / 298.7 MB Notification: Performance of Templates: time 0.004189/0.2779, allocations: 2.408 MB / 386.9 MB, free: 36.04 MB / 298.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_3.2.3_cpp_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches