Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") translateModel(Modelica.Blocks.Examples.IntegerNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|multiSwitch1.y|triggeredAdd.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009877/0.0009877, allocations: 198.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.321/1.321, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008333/0.0008334, allocations: 103.1 kB / 286.7 MB, free: 5.301 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.705e-05/1.743e-05, allocations: 4 kB / 343.7 MB, free: 8.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1062/0.1062, allocations: 51.48 MB / 395.2 MB, free: 4.785 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3565/0.4627, allocations: 78.17 MB / 473.3 MB, free: 13.57 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002265/0.463, allocations: 64.45 kB / 473.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008875/0.4719, allocations: 2.94 MB / 476.3 MB, free: 11.83 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.4719, allocations: 4 kB / 476.3 MB, free: 11.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.026e-05/0.472, allocations: 4 kB / 476.3 MB, free: 11.82 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.0007428/0.4727, allocations: 474.4 kB / 476.8 MB, free: 11.36 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.4728, allocations: 12.03 kB / 476.8 MB, free: 11.35 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001855/0.473, allocations: 34.34 kB / 476.8 MB, free: 11.32 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002716/0.4733, allocations: 230.3 kB / 477.1 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.402e-05/0.4733, allocations: 4.859 kB / 477.1 MB, free: 11.08 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.4733, allocations: 12 kB / 477.1 MB, free: 11.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00022/0.4736, allocations: 110 kB / 477.2 MB, free: 11.01 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002498/0.4738, allocations: 169.3 kB / 477.4 MB, free: 10.88 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.167e-05/0.4738, allocations: 4 kB / 477.4 MB, free: 10.87 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.929e-05/0.4739, allocations: 9.484 kB / 477.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.4739, allocations: 7.312 kB / 477.4 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009938/0.4749, allocations: 0.7595 MB / 478.1 MB, free: 10.2 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005045/0.4754, allocations: 192.6 kB / 478.3 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.881e-05/0.4755, allocations: 51.06 kB / 478.4 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.877e-05/0.4755, allocations: 0 / 478.4 MB, free: 10.04 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001914/0.4757, allocations: 127.5 kB / 478.5 MB, free: 9.934 MB / 346.7 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.4758, allocations: 0 / 478.5 MB, free: 9.934 MB / 346.7 MB Notification: Performance of matching and sorting (n=15): time 0.000321/0.4761, allocations: 156.1 kB / 478.7 MB, free: 9.816 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.226e-05/0.4761, allocations: 82.33 kB / 478.7 MB, free: 9.719 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.4763, allocations: 180.7 kB / 478.9 MB, free: 9.57 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.4763, allocations: 30.05 kB / 478.9 MB, free: 9.539 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.593e-05/0.4764, allocations: 141.6 kB / 479.1 MB, free: 9.422 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.259e-05/0.4764, allocations: 33.52 kB / 479.1 MB, free: 9.398 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.09e-05/0.4764, allocations: 4 kB / 479.1 MB, free: 9.395 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.555e-05/0.4765, allocations: 328.3 kB / 479.4 MB, free: 9.078 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.345e-05/0.4766, allocations: 51.73 kB / 479.5 MB, free: 9.047 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000101/0.4767, allocations: 119 kB / 479.6 MB, free: 8.93 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001529/0.4768, allocations: 63.67 kB / 479.7 MB, free: 8.895 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4769, allocations: 0 / 479.7 MB, free: 8.895 MB / 346.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003089/0.4772, allocations: 208.8 kB / 479.9 MB, free: 8.742 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/0.4772, allocations: 9.375 kB / 479.9 MB, free: 8.734 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.4772, allocations: 4 kB / 479.9 MB, free: 8.73 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.01e-05/0.4772, allocations: 4 kB / 479.9 MB, free: 8.727 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001735/0.4774, allocations: 46.77 kB / 479.9 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.4774, allocations: 0 / 479.9 MB, free: 8.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001728/0.4776, allocations: 30.14 kB / 480 MB, free: 8.664 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.718e-05/0.4777, allocations: 11 kB / 480 MB, free: 8.656 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 8.632e-05/0.4777, allocations: 124.8 kB / 480.1 MB, free: 8.527 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.717e-05/0.4778, allocations: 25.17 kB / 480.1 MB, free: 8.508 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000219/0.478, allocations: 121.8 kB / 480.2 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.394e-06/0.478, allocations: 0 / 480.2 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.478, allocations: 0 / 480.2 MB, free: 8.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.478, allocations: 4 kB / 480.2 MB, free: 8.414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004822/0.4785, allocations: 444.1 kB / 480.7 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.482e-06/0.4785, allocations: 0 / 480.7 MB, free: 8.035 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.4787, allocations: 29.22 kB / 480.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.4787, allocations: 0 / 480.7 MB, free: 8.016 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.661e-05/0.4787, allocations: 5.5 kB / 480.7 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.4787, allocations: 2.875 kB / 480.7 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.4787, allocations: 0 / 480.7 MB, free: 8.012 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002501/0.479, allocations: 277.6 kB / 481 MB, free: 7.766 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.104e-05/0.479, allocations: 88.92 kB / 481.1 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.479, allocations: 1.312 kB / 481.1 MB, free: 7.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001664/0.4792, allocations: 22.84 kB / 481.1 MB, free: 7.645 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.788e-05/0.4793, allocations: 23.66 kB / 481.1 MB, free: 7.633 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.739e-05/0.4793, allocations: 12.72 kB / 481.1 MB, free: 7.625 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.699e-05/0.4794, allocations: 125.2 kB / 481.3 MB, free: 7.523 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4794, allocations: 0 / 481.3 MB, free: 7.523 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003064/0.4797, allocations: 52.88 kB / 481.3 MB, free: 7.477 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.0001581/0.4799, allocations: 110.5 kB / 481.4 MB, free: 7.363 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002226/0.4801, allocations: 141.2 kB / 481.5 MB, free: 7.27 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4801, allocations: 0 / 481.5 MB, free: 7.27 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 9.657e-05/0.4802, allocations: 59.64 kB / 481.6 MB, free: 7.23 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002579/0.4805, allocations: 25.12 kB / 481.6 MB, free: 7.215 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005202/0.481, allocations: 235.1 kB / 481.9 MB, free: 7.012 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000163/0.4812, allocations: 0.7392 MB / 482.6 MB, free: 6.27 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001074/0.4813, allocations: 32.33 kB / 482.6 MB, free: 6.25 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.367e-05/0.4814, allocations: 20.66 kB / 482.7 MB, free: 6.23 MB / 346.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4814, allocations: 4 kB / 482.7 MB, free: 6.227 MB / 346.7 MB Notification: Performance of Templates: time 0.004148/0.4855, allocations: 1.682 MB / 484.3 MB, free: 4.801 MB / 346.7 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches