Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001411/0.001411, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.474/1.474, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008678/0.0008679, allocations: 94.58 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.686e-05/1.688e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1056, allocations: 47.59 MB / 363.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3304/0.436, allocations: 76.79 MB / 439.9 MB, free: 2.887 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/0.4363, allocations: 64.41 kB / 439.9 MB, free: 2.855 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008582/0.4449, allocations: 2.785 MB / 442.7 MB, free: 0.5 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.253e-06/0.445, allocations: 0 / 442.7 MB, free: 0.5 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.445, allocations: 4 kB / 442.7 MB, free: 0.4961 MB / 314.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.0007228/0.4457, allocations: 487 kB / 443.2 MB, free: 15.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.4458, allocations: 8.031 kB / 443.2 MB, free: 15.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.533e-05/0.4458, allocations: 23.72 kB / 443.2 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002894/0.4461, allocations: 233.3 kB / 443.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.4462, allocations: 4 kB / 443.4 MB, free: 15.7 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.4462, allocations: 15.94 kB / 443.5 MB, free: 15.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002183/0.4464, allocations: 108 kB / 443.6 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002604/0.4467, allocations: 176 kB / 443.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.4467, allocations: 0 / 443.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.4468, allocations: 0 / 443.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.344e-05/0.4468, allocations: 11.06 kB / 443.7 MB, free: 15.44 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001111/0.4479, allocations: 0.7614 MB / 444.5 MB, free: 14.69 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005292/0.4484, allocations: 181.3 kB / 444.7 MB, free: 14.54 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.241e-05/0.4485, allocations: 49.66 kB / 444.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.956e-05/0.4486, allocations: 4 kB / 444.7 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001954/0.4488, allocations: 129.2 kB / 444.9 MB, free: 14.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.383e-06/0.4488, allocations: 0 / 444.9 MB, free: 14.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003471/0.4492, allocations: 154.8 kB / 445 MB, free: 14.24 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.57e-05/0.4492, allocations: 84.28 kB / 445.1 MB, free: 14.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001704/0.4494, allocations: 184 kB / 445.3 MB, free: 13.97 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.555e-05/0.4494, allocations: 33.27 kB / 445.3 MB, free: 13.94 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.373e-05/0.4495, allocations: 132.2 kB / 445.4 MB, free: 13.82 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.613e-05/0.4496, allocations: 42.53 kB / 445.5 MB, free: 13.79 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.004e-05/0.4496, allocations: 0 / 445.5 MB, free: 13.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.4497, allocations: 327.7 kB / 445.8 MB, free: 13.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001003/0.4499, allocations: 53.17 kB / 445.9 MB, free: 13.43 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001446/0.45, allocations: 113.3 kB / 446 MB, free: 13.31 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001364/0.4502, allocations: 70.77 kB / 446 MB, free: 13.26 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.769e-06/0.4502, allocations: 0 / 446 MB, free: 13.26 MB / 330.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003555/0.4505, allocations: 211.9 kB / 446.2 MB, free: 13.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.4506, allocations: 4 kB / 446.2 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4506, allocations: 4 kB / 446.2 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.322e-05/0.4506, allocations: 4.125 kB / 446.3 MB, free: 13.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001902/0.4508, allocations: 43.67 kB / 446.3 MB, free: 13.03 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.224e-05/0.4508, allocations: 7.984 kB / 446.3 MB, free: 13.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001706/0.451, allocations: 32.08 kB / 446.3 MB, free: 12.99 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.959e-05/0.451, allocations: 8.094 kB / 446.3 MB, free: 12.98 MB / 330.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.0001269/0.4512, allocations: 126.3 kB / 446.5 MB, free: 12.85 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.127e-05/0.4512, allocations: 19.77 kB / 446.5 MB, free: 12.83 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002414/0.4515, allocations: 124.4 kB / 446.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.4515, allocations: 7.984 kB / 446.6 MB, free: 12.73 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.314e-06/0.4515, allocations: 7.984 kB / 446.6 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.4515, allocations: 0 / 446.6 MB, free: 12.72 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005767/0.4521, allocations: 432.3 kB / 447 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.4521, allocations: 0 / 447 MB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001182/0.4522, allocations: 23.92 kB / 447.1 MB, free: 12.28 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.588e-06/0.4522, allocations: 4 kB / 447.1 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.463e-05/0.4523, allocations: 4 kB / 447.1 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.858e-06/0.4523, allocations: 3.984 kB / 447.1 MB, free: 12.27 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.929e-06/0.4523, allocations: 4 kB / 447.1 MB, free: 12.26 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003054/0.4526, allocations: 260.3 kB / 447.3 MB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.048e-05/0.4527, allocations: 92.86 kB / 447.4 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.525e-05/0.4527, allocations: 4 kB / 447.4 MB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000168/0.4529, allocations: 27.22 kB / 447.5 MB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.343e-05/0.453, allocations: 22.97 kB / 447.5 MB, free: 11.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.601e-05/0.453, allocations: 4 kB / 447.5 MB, free: 11.85 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001064/0.4531, allocations: 133.9 kB / 447.6 MB, free: 11.74 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4531, allocations: 0 / 447.6 MB, free: 11.74 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000296/0.4534, allocations: 39.84 kB / 447.7 MB, free: 11.7 MB / 330.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.0001747/0.4536, allocations: 119.4 kB / 447.8 MB, free: 11.57 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.4539, allocations: 132.7 kB / 447.9 MB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.4539, allocations: 0 / 447.9 MB, free: 11.48 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001075/0.454, allocations: 73.66 kB / 448 MB, free: 11.42 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.4542, allocations: 27.66 kB / 448 MB, free: 11.4 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004873/0.4547, allocations: 242.3 kB / 448.2 MB, free: 11.16 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003286/0.4551, allocations: 0.736 MB / 449 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001088/0.4552, allocations: 38.08 kB / 449 MB, free: 10.36 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.407e-05/0.4553, allocations: 15.44 kB / 449 MB, free: 10.34 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4553, allocations: 0 / 449 MB, free: 10.34 MB / 330.7 MB Notification: Performance of Templates: time 0.004346/0.4596, allocations: 1.674 MB / 450.7 MB, free: 8.684 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches