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.0009628/0.0009628, allocations: 94.03 kB / 16.95 MB, free: 6.441 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.001129/0.001129, allocations: 181.2 kB / 17.84 MB, free: 6.008 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.719/1.719, allocations: 205.4 MB / 224 MB, free: 13.06 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.0004639/0.0004642, allocations: 12 kB / 280.8 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.1283, allocations: 47.58 MB / 328.3 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002369/0.1307, allocations: 1.493 MB / 329.8 MB, free: 2.566 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001203/0.1319, allocations: 0.6168 MB / 330.5 MB, free: 1.941 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.132, allocations: 7.938 kB / 330.5 MB, free: 1.934 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001271/0.1322, allocations: 23.8 kB / 330.5 MB, free: 1.91 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.1323, allocations: 19.84 kB / 330.5 MB, free: 1.891 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002749/0.1326, allocations: 63.88 kB / 330.6 MB, free: 1.828 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.1328, allocations: 151.5 kB / 330.7 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.133, allocations: 58.41 kB / 330.8 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.1332, allocations: 59.7 kB / 330.8 MB, free: 1.559 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1333, allocations: 63.69 kB / 330.9 MB, free: 1.496 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.567e-05/0.1334, allocations: 4 kB / 330.9 MB, free: 1.492 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.884e-05/0.1334, allocations: 23.94 kB / 330.9 MB, free: 1.469 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 7.058e-05/0.1335, allocations: 31.89 kB / 331 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.861e-05/0.1336, allocations: 53.58 kB / 331 MB, free: 1.379 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002014/0.1338, allocations: 116 kB / 331.1 MB, free: 1.266 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.485e-06/0.1338, allocations: 4 kB / 331.1 MB, free: 1.262 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.876e-06/0.1338, allocations: 3.938 kB / 331.1 MB, free: 1.258 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.783e-06/0.1338, allocations: 0 / 331.1 MB, free: 1.258 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.0009847/0.1348, allocations: 490.5 kB / 331.6 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.1349, allocations: 8.031 kB / 331.6 MB, free: 0.7227 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.215e-05/0.135, allocations: 23.81 kB / 331.6 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003061/0.1353, allocations: 230.6 kB / 331.9 MB, free: 444 kB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.1353, allocations: 15.95 kB / 331.9 MB, free: 428 kB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.216e-05/0.1353, allocations: 20 kB / 331.9 MB, free: 408 kB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004142/0.1358, allocations: 213 kB / 332.1 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1358, allocations: 0 / 332.1 MB, free: 176 kB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.978e-05/0.1358, allocations: 8 kB / 332.1 MB, free: 168 kB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.918e-05/0.1359, allocations: 15.98 kB / 332.1 MB, free: 152 kB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003233/0.1362, allocations: 139.8 kB / 332.3 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001152/0.1373, allocations: 0.801 MB / 333.1 MB, free: 15.15 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005996/0.138, allocations: 214.6 kB / 333.3 MB, free: 14.93 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.1382, allocations: 68.81 kB / 333.3 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.462e-05/0.1383, allocations: 7.938 kB / 333.4 MB, free: 14.85 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000291/0.1386, allocations: 149 kB / 333.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1386, allocations: 0 / 333.5 MB, free: 14.69 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005813/0.1392, allocations: 249.3 kB / 333.7 MB, free: 14.44 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.1392, allocations: 85.05 kB / 333.8 MB, free: 14.34 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001969/0.1394, allocations: 226.6 kB / 334 MB, free: 14.1 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.233e-05/0.1395, allocations: 29.7 kB / 334.1 MB, free: 14.07 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.913e-05/0.1396, allocations: 148.2 kB / 334.2 MB, free: 13.92 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.308e-05/0.1396, allocations: 31.66 kB / 334.2 MB, free: 13.89 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.11e-05/0.1396, allocations: 4 kB / 334.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1397, allocations: 334.8 kB / 334.6 MB, free: 13.55 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001516/0.1399, allocations: 71.95 kB / 334.7 MB, free: 13.48 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/0.1401, allocations: 132.5 kB / 334.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.1403, allocations: 87.91 kB / 334.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1403, allocations: 0 / 334.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000434/0.1407, allocations: 257.1 kB / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.1408, allocations: 6.656 kB / 335.1 MB, free: 12.97 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.1408, allocations: 4.312 kB / 335.1 MB, free: 12.96 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.747e-05/0.1408, allocations: 11.92 kB / 335.1 MB, free: 12.95 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.141, allocations: 44.17 kB / 335.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.151e-05/0.141, allocations: 7.984 kB / 335.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.1412, allocations: 35.83 kB / 335.2 MB, free: 12.87 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.1412, allocations: 12 kB / 335.2 MB, free: 12.86 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.0001546/0.1413, allocations: 152 kB / 335.4 MB, free: 12.7 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.719e-05/0.1414, allocations: 15.81 kB / 335.4 MB, free: 12.68 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000247/0.1416, allocations: 131.4 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.1416, allocations: 4 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1417, allocations: 96 / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.838e-06/0.1417, allocations: 3.938 kB / 335.5 MB, free: 12.54 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005902/0.1423, allocations: 490.2 kB / 336 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.1423, allocations: 4 kB / 336 MB, free: 12 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001132/0.1424, allocations: 23.92 kB / 336 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.985e-06/0.1424, allocations: 0 / 336 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.704e-05/0.1424, allocations: 4 kB / 336 MB, free: 11.97 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1424, allocations: 4 kB / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1424, allocations: 0 / 336.1 MB, free: 11.96 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004093/0.1429, allocations: 300.1 kB / 336.3 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.917e-05/0.1429, allocations: 96.77 kB / 336.4 MB, free: 11.54 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.412e-05/0.143, allocations: 8 kB / 336.4 MB, free: 11.53 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.1432, allocations: 23.97 kB / 336.5 MB, free: 11.51 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.122e-05/0.1432, allocations: 19.97 kB / 336.5 MB, free: 11.49 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.147e-05/0.1433, allocations: 8 kB / 336.5 MB, free: 11.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001343/0.1434, allocations: 144.4 kB / 336.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1434, allocations: 0 / 336.6 MB, free: 11.34 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003007/0.1437, allocations: 39.95 kB / 336.7 MB, free: 11.3 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.0001752/0.1439, allocations: 111.2 kB / 336.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004101/0.1443, allocations: 183.7 kB / 337 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.1443, allocations: 0 / 337 MB, free: 11 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.1445, allocations: 80.39 kB / 337 MB, free: 10.93 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003493/0.1449, allocations: 35.88 kB / 337.1 MB, free: 10.89 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007063/0.1456, allocations: 403.6 kB / 337.5 MB, free: 10.47 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002987/0.1459, allocations: 0.7366 MB / 338.2 MB, free: 9.707 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000102/0.146, allocations: 33.77 kB / 338.2 MB, free: 9.676 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.066e-05/0.1461, allocations: 19.44 kB / 338.3 MB, free: 9.656 MB / 286.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1461, allocations: 3.938 kB / 338.3 MB, free: 9.652 MB / 286.1 MB Notification: Performance of Templates: time 0.005141/0.1512, allocations: 1.798 MB / 340.1 MB, free: 7.859 MB / 286.1 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