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.001408/0.001408, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.811/1.811, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001122/0.001122, allocations: 100.3 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003878, allocations: 8 kB / 327 MB, free: 236 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3137/0.3141, allocations: 47.56 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.4312, allocations: 77.32 MB / 451.8 MB, free: 3.477 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/0.4315, allocations: 71.97 kB / 451.9 MB, free: 3.406 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01232/0.4438, allocations: 2.805 MB / 454.7 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.4439, allocations: 0 / 454.7 MB, free: 0.5938 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.97e-05/0.4439, allocations: 11.98 kB / 454.7 MB, free: 0.582 MB / 330.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.001006/0.4449, allocations: 492.5 kB / 455.2 MB, free: 56 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.445, allocations: 8.031 kB / 455.2 MB, free: 48 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.445, allocations: 27.72 kB / 455.2 MB, free: 20 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.4454, allocations: 242.6 kB / 455.5 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.4454, allocations: 15.75 kB / 455.5 MB, free: 15.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.4455, allocations: 19.95 kB / 455.5 MB, free: 15.71 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005543/0.4461, allocations: 205.9 kB / 455.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.246e-05/0.4461, allocations: 7.938 kB / 455.7 MB, free: 15.48 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.195e-05/0.4461, allocations: 11.98 kB / 455.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/0.4462, allocations: 10.31 kB / 455.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005442/0.4467, allocations: 139.9 kB / 455.9 MB, free: 15.32 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001547/0.4483, allocations: 0.8012 MB / 456.7 MB, free: 14.46 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.4493, allocations: 210.6 kB / 456.9 MB, free: 14.24 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.915e-05/0.4494, allocations: 7.984 kB / 456.9 MB, free: 14.23 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003914/0.4498, allocations: 147.6 kB / 457 MB, free: 14.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 3.857e-06/0.4498, allocations: 0 / 457 MB, free: 14.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.000941/0.4508, allocations: 257.3 kB / 457.3 MB, free: 13.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.4508, allocations: 81.11 kB / 457.4 MB, free: 13.72 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.4511, allocations: 201.7 kB / 457.6 MB, free: 13.52 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.4512, allocations: 33.7 kB / 457.6 MB, free: 13.48 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001132/0.4513, allocations: 199 kB / 457.8 MB, free: 13.28 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.893e-05/0.4513, allocations: 31.55 kB / 457.8 MB, free: 13.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.083e-05/0.4514, allocations: 8 kB / 457.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.4515, allocations: 318.8 kB / 458.1 MB, free: 12.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002699/0.4518, allocations: 67.95 kB / 458.2 MB, free: 12.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003298/0.4521, allocations: 148.9 kB / 458.4 MB, free: 12.68 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003138/0.4524, allocations: 85.78 kB / 458.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-06/0.4525, allocations: 0 / 458.4 MB, free: 12.6 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0007407/0.4532, allocations: 249.2 kB / 458.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.977e-05/0.4532, allocations: 8 kB / 458.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.523e-06/0.4533, allocations: 0 / 458.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.756e-05/0.4533, allocations: 4 kB / 458.7 MB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003016/0.4536, allocations: 43.91 kB / 458.7 MB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.049e-05/0.4536, allocations: 4 kB / 458.7 MB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002901/0.4539, allocations: 40.06 kB / 458.8 MB, free: 12.25 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.371e-05/0.454, allocations: 8 kB / 458.8 MB, free: 12.25 MB / 346.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.0001801/0.4542, allocations: 159.9 kB / 458.9 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.118e-05/0.4542, allocations: 24.12 kB / 459 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003691/0.4546, allocations: 134.8 kB / 459.1 MB, free: 11.92 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.4546, allocations: 4 kB / 459.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.4546, allocations: 4 kB / 459.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.94e-06/0.4546, allocations: 0 / 459.1 MB, free: 11.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008492/0.4555, allocations: 474.3 kB / 459.6 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.4555, allocations: 4 kB / 459.6 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001952/0.4557, allocations: 15.98 kB / 459.6 MB, free: 11.37 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.496e-06/0.4558, allocations: 7.984 kB / 459.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.024e-05/0.4558, allocations: 8 kB / 459.6 MB, free: 11.36 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.899e-06/0.4558, allocations: 4 kB / 459.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.37e-06/0.4558, allocations: 3.938 kB / 459.6 MB, free: 11.35 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006669/0.4565, allocations: 306.1 kB / 459.9 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.103e-05/0.4566, allocations: 92.83 kB / 460 MB, free: 10.91 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.944e-05/0.4566, allocations: 11.98 kB / 460 MB, free: 10.9 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000281/0.4569, allocations: 19.98 kB / 460 MB, free: 10.88 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.253e-05/0.457, allocations: 19.97 kB / 460.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.436e-05/0.4571, allocations: 7.984 kB / 460.1 MB, free: 10.86 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001662/0.4572, allocations: 152.4 kB / 460.2 MB, free: 10.71 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4572, allocations: 0 / 460.2 MB, free: 10.71 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004059/0.4577, allocations: 39.94 kB / 460.3 MB, free: 10.67 MB / 346.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.0001843/0.4579, allocations: 123.1 kB / 460.4 MB, free: 10.54 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0006301/0.4585, allocations: 179.8 kB / 460.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.4585, allocations: 0 / 460.5 MB, free: 10.36 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003117/0.4588, allocations: 79.89 kB / 460.6 MB, free: 10.28 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.4592, allocations: 28.69 kB / 460.7 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009449/0.4602, allocations: 441.1 kB / 461.1 MB, free: 9.789 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003325/0.4605, allocations: 0.7403 MB / 461.8 MB, free: 9.02 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.881e-05/0.4606, allocations: 19.44 kB / 461.8 MB, free: 9.004 MB / 346.7 MB Notification: Performance of SimCode: time 6.41e-07/0.4606, allocations: 0 / 461.8 MB, free: 9.004 MB / 346.7 MB Notification: Performance of Templates: time 0.005823/0.4665, allocations: 2.37 MB / 464.2 MB, free: 6.645 MB / 346.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/jenkins1/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