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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000997/0.0009974, allocations: 96.53 kB / 16.94 MB, free: 5.98 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001164/0.001164, allocations: 179.6 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.768/1.768, allocations: 205.4 MB / 224 MB, free: 13.17 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004505/0.0004505, allocations: 12 kB / 280.7 MB, free: 3.762 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09544/0.0959, allocations: 47.59 MB / 328.3 MB, free: 4.105 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002065/0.09802, allocations: 1.479 MB / 329.8 MB, free: 2.613 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001024/0.09907, allocations: 0.6246 MB / 330.4 MB, free: 1.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.044e-05/0.09918, allocations: 4 kB / 330.4 MB, free: 1.977 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.588e-05/0.09928, allocations: 19.78 kB / 330.4 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00012/0.09941, allocations: 27.89 kB / 330.5 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002605/0.09968, allocations: 67.86 kB / 330.5 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001749/0.09986, allocations: 107.8 kB / 330.6 MB, free: 1.758 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001737/0.1, allocations: 58.39 kB / 330.7 MB, free: 1.695 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001419/0.1002, allocations: 67.64 kB / 330.8 MB, free: 1.629 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001223/0.1003, allocations: 63.62 kB / 330.8 MB, free: 1.566 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.187e-05/0.1004, allocations: 8 kB / 330.8 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.044e-05/0.1004, allocations: 12 kB / 330.8 MB, free: 1.547 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 6.477e-05/0.1005, allocations: 39.83 kB / 330.9 MB, free: 1.508 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.469e-05/0.1006, allocations: 53.58 kB / 330.9 MB, free: 1.449 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001646/0.1008, allocations: 116 kB / 331.1 MB, free: 1.336 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.414e-06/0.1008, allocations: 0 / 331.1 MB, free: 1.336 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1008, allocations: 0 / 331.1 MB, free: 1.336 MB / 270.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.1008, allocations: 0 / 331.1 MB, free: 1.336 MB / 270.1 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.0008645/0.1017, allocations: 490.5 kB / 331.5 MB, free: 0.8086 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.21e-05/0.1017, allocations: 8.031 kB / 331.5 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.261e-05/0.1018, allocations: 19.81 kB / 331.6 MB, free: 0.7812 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002696/0.102, allocations: 238.6 kB / 331.8 MB, free: 0.5078 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.775e-05/0.1021, allocations: 15.95 kB / 331.8 MB, free: 0.4922 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.897e-05/0.1021, allocations: 20 kB / 331.8 MB, free: 484 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003667/0.1025, allocations: 209.1 kB / 332 MB, free: 256 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.1025, allocations: 3.938 kB / 332 MB, free: 252 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.19e-05/0.1025, allocations: 8 kB / 332 MB, free: 244 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.402e-05/0.1026, allocations: 11.98 kB / 332.1 MB, free: 232 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003071/0.1029, allocations: 147.8 kB / 332.2 MB, free: 84 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.104, allocations: 0.7933 MB / 333 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006174/0.1046, allocations: 210.6 kB / 333.2 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.731e-05/0.1047, allocations: 4 kB / 333.2 MB, free: 15.01 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002932/0.105, allocations: 153 kB / 333.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.853e-06/0.105, allocations: 0 / 333.4 MB, free: 14.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006061/0.1056, allocations: 245.3 kB / 333.6 MB, free: 14.59 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/0.1057, allocations: 89.09 kB / 333.7 MB, free: 14.49 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002106/0.1059, allocations: 218.6 kB / 333.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.917e-05/0.1059, allocations: 37.69 kB / 333.9 MB, free: 14.22 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000115/0.106, allocations: 152.4 kB / 334.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.356e-05/0.1061, allocations: 27.64 kB / 334.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.103e-05/0.1061, allocations: 4.375 kB / 334.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001471/0.1062, allocations: 334.8 kB / 334.4 MB, free: 13.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001566/0.1064, allocations: 67.95 kB / 334.5 MB, free: 13.63 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.1066, allocations: 144.4 kB / 334.6 MB, free: 13.46 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001756/0.1068, allocations: 87.91 kB / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.1068, allocations: 0 / 334.7 MB, free: 13.38 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004565/0.1073, allocations: 261 kB / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.1e-05/0.1073, allocations: 8 kB / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.1073, allocations: 0 / 335 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.836e-05/0.1074, allocations: 4 kB / 335 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/0.1075, allocations: 48.16 kB / 335 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.968e-06/0.1076, allocations: 8.312 kB / 335 MB, free: 13.05 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001816/0.1077, allocations: 31.81 kB / 335.1 MB, free: 13.02 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.096e-05/0.1078, allocations: 16 kB / 335.1 MB, free: 13 MB / 286.1 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.0001605/0.1079, allocations: 156 kB / 335.2 MB, free: 12.84 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.645e-05/0.108, allocations: 19.81 kB / 335.3 MB, free: 12.82 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002503/0.1082, allocations: 131 kB / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.1082, allocations: 4 kB / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.88e-06/0.1083, allocations: 0 / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.1083, allocations: 0 / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005953/0.1089, allocations: 486.2 kB / 335.9 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.704e-06/0.1089, allocations: 0 / 335.9 MB, free: 12.14 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001095/0.109, allocations: 23.98 kB / 335.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.544e-06/0.109, allocations: 0 / 335.9 MB, free: 12.12 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.724e-05/0.109, allocations: 7.984 kB / 335.9 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.797e-06/0.109, allocations: 0 / 335.9 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.272e-06/0.109, allocations: 3.938 kB / 335.9 MB, free: 12.11 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004294/0.1095, allocations: 305.5 kB / 336.2 MB, free: 11.79 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-05/0.1096, allocations: 100.8 kB / 336.3 MB, free: 11.67 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/0.1096, allocations: 7.984 kB / 336.3 MB, free: 11.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/0.1098, allocations: 19.98 kB / 336.3 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.262e-05/0.1099, allocations: 32.11 kB / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.985e-05/0.1099, allocations: 7.984 kB / 336.4 MB, free: 11.61 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001137/0.11, allocations: 152.3 kB / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.11, allocations: 0 / 336.5 MB, free: 11.46 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002913/0.1103, allocations: 40 kB / 336.6 MB, free: 11.42 MB / 286.1 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.0001766/0.1105, allocations: 103.2 kB / 336.7 MB, free: 11.31 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004053/0.1109, allocations: 179.7 kB / 336.8 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1109, allocations: 4 kB / 336.8 MB, free: 11.13 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001829/0.1111, allocations: 80.39 kB / 336.9 MB, free: 11.05 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002754/0.1114, allocations: 35.92 kB / 337 MB, free: 11.02 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007561/0.1122, allocations: 399.5 kB / 337.3 MB, free: 10.6 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003725/0.1125, allocations: 0.7364 MB / 338.1 MB, free: 9.836 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.1127, allocations: 37.52 kB / 338.1 MB, free: 9.801 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.963e-05/0.1127, allocations: 19.42 kB / 338.1 MB, free: 9.781 MB / 286.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1127, allocations: 0 / 338.1 MB, free: 9.781 MB / 286.1 MB Notification: Performance of Templates: time 0.004852/0.1176, allocations: 1.784 MB / 339.9 MB, free: 8 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.IntegerNetwork1.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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