Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001585/0.001585, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.323/1.323, allocations: 221.5 MB / 230.3 MB, free: 7.52 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00089/0.0008901, allocations: 87.48 kB / 281.2 MB, free: 5.262 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.899e-05/1.903e-05, allocations: 4 kB / 337 MB, free: 10.03 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09228, allocations: 50.43 MB / 387.5 MB, free: 7.566 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.333/0.4253, allocations: 77.35 MB / 464.8 MB, free: 1.504 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/0.4257, allocations: 63.97 kB / 464.9 MB, free: 1.441 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01107/0.4368, allocations: 2.834 MB / 467.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.4369, allocations: 0 / 467.7 MB, free: 14.61 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.4369, allocations: 12.75 kB / 467.7 MB, free: 14.6 MB / 346.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.0009944/0.4379, allocations: 472.7 kB / 468.2 MB, free: 14.1 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.555e-05/0.438, allocations: 8.031 kB / 468.2 MB, free: 14.09 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.649e-05/0.4381, allocations: 27.67 kB / 468.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004096/0.4385, allocations: 234.8 kB / 468.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.178e-05/0.4386, allocations: 4 kB / 468.4 MB, free: 13.79 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.041e-05/0.4386, allocations: 12 kB / 468.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003116/0.4389, allocations: 111.9 kB / 468.6 MB, free: 13.67 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003017/0.4392, allocations: 177.9 kB / 468.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.269e-05/0.4393, allocations: 0 / 468.7 MB, free: 13.47 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.4393, allocations: 11.94 kB / 468.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.623e-05/0.4393, allocations: 4 kB / 468.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001099/0.4404, allocations: 0.7588 MB / 469.5 MB, free: 12.65 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005619/0.441, allocations: 190.6 kB / 469.7 MB, free: 12.45 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.858e-05/0.4411, allocations: 49.06 kB / 469.7 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.225e-05/0.4412, allocations: 3.938 kB / 469.8 MB, free: 12.4 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002356/0.4414, allocations: 138.1 kB / 469.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.4414, allocations: 0 / 469.9 MB, free: 12.25 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004064/0.4418, allocations: 153.4 kB / 470 MB, free: 12.09 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.4419, allocations: 81.11 kB / 470.1 MB, free: 11.99 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/0.4421, allocations: 182.9 kB / 470.3 MB, free: 11.8 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.166e-05/0.4422, allocations: 29.7 kB / 470.3 MB, free: 11.77 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001144/0.4423, allocations: 140.2 kB / 470.5 MB, free: 11.62 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.109e-05/0.4424, allocations: 27.61 kB / 470.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.086e-05/0.4424, allocations: 7.938 kB / 470.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.4426, allocations: 330.8 kB / 470.8 MB, free: 11.25 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.642e-05/0.4427, allocations: 55.92 kB / 470.9 MB, free: 11.2 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.4428, allocations: 116.5 kB / 471 MB, free: 11.05 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.443, allocations: 63.95 kB / 471 MB, free: 10.99 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.443, allocations: 0 / 471 MB, free: 10.99 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003299/0.4433, allocations: 205.4 kB / 471.3 MB, free: 10.79 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/0.4433, allocations: 4 kB / 471.3 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.4433, allocations: 4 kB / 471.3 MB, free: 10.78 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.328e-05/0.4434, allocations: 7.953 kB / 471.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001798/0.4436, allocations: 39.91 kB / 471.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.4436, allocations: 4 kB / 471.3 MB, free: 10.73 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001815/0.4438, allocations: 36.05 kB / 471.3 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.521e-05/0.4438, allocations: 16 kB / 471.4 MB, free: 10.68 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 () * 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.0001342/0.444, allocations: 124.8 kB / 471.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.096e-05/0.444, allocations: 19.81 kB / 471.5 MB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002766/0.4443, allocations: 119.5 kB / 471.6 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.4443, allocations: 4 kB / 471.6 MB, free: 10.4 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.914e-06/0.4443, allocations: 3.953 kB / 471.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.4443, allocations: 4 kB / 471.6 MB, free: 10.39 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005565/0.4449, allocations: 442.8 kB / 472.1 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.4449, allocations: 0 / 472.1 MB, free: 9.914 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.445, allocations: 23.92 kB / 472.1 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.445, allocations: 0 / 472.1 MB, free: 9.891 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.4451, allocations: 3.984 kB / 472.1 MB, free: 9.887 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.4451, allocations: 11.95 kB / 472.1 MB, free: 9.875 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.887e-06/0.4451, allocations: 3.984 kB / 472.1 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003214/0.4454, allocations: 257.9 kB / 472.4 MB, free: 9.594 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.258e-05/0.4455, allocations: 96.86 kB / 472.5 MB, free: 9.48 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.33e-05/0.4455, allocations: 7.938 kB / 472.5 MB, free: 9.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001936/0.4457, allocations: 23.98 kB / 472.5 MB, free: 9.449 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.4458, allocations: 23.91 kB / 472.5 MB, free: 9.426 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.708e-05/0.4458, allocations: 7.984 kB / 472.5 MB, free: 9.418 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001056/0.4459, allocations: 129.6 kB / 472.6 MB, free: 9.293 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4459, allocations: 0 / 472.6 MB, free: 9.293 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003076/0.4463, allocations: 43.84 kB / 472.7 MB, free: 9.25 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) * 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.0001835/0.4464, allocations: 107.2 kB / 472.8 MB, free: 9.137 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002758/0.4467, allocations: 136.4 kB / 472.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.4467, allocations: 0 / 472.9 MB, free: 9.004 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.4469, allocations: 67.91 kB / 473 MB, free: 8.938 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/0.4471, allocations: 23.2 kB / 473 MB, free: 8.918 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005262/0.4477, allocations: 246.6 kB / 473.2 MB, free: 8.648 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003079/0.448, allocations: 0.7321 MB / 474 MB, free: 7.887 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000114/0.4481, allocations: 37.83 kB / 474 MB, free: 7.852 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.592e-05/0.4482, allocations: 15.44 kB / 474 MB, free: 7.836 MB / 346.7 MB Notification: Performance of SimCode: time 1.663e-06/0.4482, allocations: 0 / 474 MB, free: 7.836 MB / 346.7 MB Notification: Performance of Templates: time 0.004676/0.4529, allocations: 1.664 MB / 475.7 MB, free: 6.184 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","../files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches