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/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 4.0.0+maint.om/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008982/0.0008982, allocations: 90.36 kB / 16.31 MB, free: 5.66 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.0008638/0.0008638, allocations: 178.5 kB / 17.2 MB, free: 5.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.3 MB / 241.2 MB, free: 5.422 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003555/0.0003556, allocations: 6.312 kB / 300.8 MB, free: 6.031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1314/0.1318, allocations: 50.42 MB / 351.2 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.002486/0.1343, allocations: 1.491 MB / 352.7 MB, free: 10.2 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001081/0.1354, allocations: 0.5885 MB / 353.3 MB, free: 9.605 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.1356, allocations: 7.938 kB / 353.3 MB, free: 9.598 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.1357, allocations: 15.8 kB / 353.3 MB, free: 9.582 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001419/0.1359, allocations: 27.8 kB / 353.4 MB, free: 9.555 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002669/0.1361, allocations: 59.92 kB / 353.4 MB, free: 9.496 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002593/0.1364, allocations: 159.5 kB / 353.6 MB, free: 9.34 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001993/0.1366, allocations: 62.2 kB / 353.6 MB, free: 9.277 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001161/0.1367, allocations: 59.7 kB / 353.7 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1369, allocations: 67.62 kB / 353.8 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.1369, allocations: 8 kB / 353.8 MB, free: 9.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.12e-05/0.137, allocations: 12 kB / 353.8 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.179e-05/0.1371, allocations: 27.91 kB / 353.8 MB, free: 9.105 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.396e-05/0.1372, allocations: 53.58 kB / 353.9 MB, free: 9.047 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.1374, allocations: 115.8 kB / 354 MB, free: 8.934 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.1374, allocations: 0 / 354 MB, free: 8.934 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.1374, allocations: 8 kB / 354 MB, free: 8.926 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.114e-06/0.1374, allocations: 0 / 354 MB, free: 8.926 MB / 286.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.001029/0.1384, allocations: 490.5 kB / 354.5 MB, free: 8.398 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.1385, allocations: 12.03 kB / 354.5 MB, free: 8.387 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.82e-05/0.1385, allocations: 23.77 kB / 354.5 MB, free: 8.363 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.1388, allocations: 234.6 kB / 354.7 MB, free: 8.094 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.436e-05/0.1389, allocations: 12 kB / 354.7 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.805e-05/0.1389, allocations: 12 kB / 354.7 MB, free: 8.07 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004062/0.1393, allocations: 217.5 kB / 355 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.1393, allocations: 0 / 355 MB, free: 7.836 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.224e-05/0.1394, allocations: 4 kB / 355 MB, free: 7.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.951e-05/0.1394, allocations: 11.95 kB / 355 MB, free: 7.82 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003264/0.1397, allocations: 151.8 kB / 355.1 MB, free: 7.672 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00112/0.1408, allocations: 0.7896 MB / 355.9 MB, free: 6.82 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000637/0.1415, allocations: 202.7 kB / 356.1 MB, free: 6.613 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001727/0.1417, allocations: 76.75 kB / 356.2 MB, free: 6.535 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.926e-05/0.1417, allocations: 0 / 356.2 MB, free: 6.535 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.142, allocations: 159.3 kB / 356.3 MB, free: 6.363 MB / 286.1 MB Notification: Performance of pre-optimization done (n=15): time 1.292e-06/0.142, allocations: 4 kB / 356.3 MB, free: 6.359 MB / 286.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006215/0.1427, allocations: 253.3 kB / 356.6 MB, free: 6.105 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.192e-05/0.1428, allocations: 85.05 kB / 356.7 MB, free: 6.004 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.143, allocations: 226.7 kB / 356.9 MB, free: 5.773 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.723e-05/0.143, allocations: 33.7 kB / 356.9 MB, free: 5.734 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.989e-05/0.1431, allocations: 124.4 kB / 357 MB, free: 5.609 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.9e-05/0.1432, allocations: 43.55 kB / 357.1 MB, free: 5.566 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.638e-06/0.1432, allocations: 0 / 357.1 MB, free: 5.566 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1433, allocations: 334.8 kB / 357.4 MB, free: 5.23 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.1435, allocations: 71.95 kB / 357.5 MB, free: 5.16 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001931/0.1437, allocations: 136.5 kB / 357.6 MB, free: 4.996 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001862/0.1439, allocations: 95.83 kB / 357.7 MB, free: 4.902 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.1439, allocations: 0 / 357.7 MB, free: 4.902 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004368/0.1443, allocations: 253.1 kB / 358 MB, free: 4.648 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.1443, allocations: 11.95 kB / 358 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.1444, allocations: 0 / 358 MB, free: 4.637 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.1444, allocations: 4 kB / 358 MB, free: 4.633 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001671/0.1445, allocations: 39.92 kB / 358 MB, free: 4.594 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.183e-05/0.1446, allocations: 12.55 kB / 358 MB, free: 4.582 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/0.1447, allocations: 31.83 kB / 358.1 MB, free: 4.551 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.104e-05/0.1448, allocations: 16 kB / 358.1 MB, free: 4.535 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.00015/0.1449, allocations: 152 kB / 358.2 MB, free: 4.379 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.145, allocations: 15.81 kB / 358.2 MB, free: 4.363 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002612/0.1452, allocations: 138.9 kB / 358.4 MB, free: 4.215 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.1452, allocations: 4 kB / 358.4 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.1452, allocations: 0 / 358.4 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1453, allocations: 0 / 358.4 MB, free: 4.211 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006462/0.1459, allocations: 486.7 kB / 358.8 MB, free: 3.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.638e-06/0.1459, allocations: 3.953 kB / 358.9 MB, free: 3.676 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000113/0.146, allocations: 23.98 kB / 358.9 MB, free: 3.652 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.1461, allocations: 96 / 358.9 MB, free: 3.652 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.1461, allocations: 11.94 kB / 358.9 MB, free: 3.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1461, allocations: 3.984 kB / 358.9 MB, free: 3.637 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1461, allocations: 0 / 358.9 MB, free: 3.637 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004/0.1465, allocations: 300 kB / 359.2 MB, free: 3.324 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.409e-05/0.1466, allocations: 104.8 kB / 359.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.917e-05/0.1466, allocations: 0 / 359.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.1468, allocations: 23.98 kB / 359.3 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.674e-05/0.1469, allocations: 23.95 kB / 359.3 MB, free: 3.156 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.85e-05/0.1469, allocations: 8 kB / 359.3 MB, free: 3.148 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001484/0.147, allocations: 144.6 kB / 359.5 MB, free: 3.008 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.147, allocations: 0 / 359.5 MB, free: 3.008 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002965/0.1473, allocations: 39.94 kB / 359.5 MB, free: 2.969 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.000156/0.1475, allocations: 107.8 kB / 359.6 MB, free: 2.855 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000388/0.1479, allocations: 179.7 kB / 359.8 MB, free: 2.68 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1479, allocations: 4 kB / 359.8 MB, free: 2.676 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000186/0.1481, allocations: 79.89 kB / 359.9 MB, free: 2.598 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003471/0.1485, allocations: 31.73 kB / 359.9 MB, free: 2.57 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007794/0.1492, allocations: 403.5 kB / 360.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004259/0.1497, allocations: 0.7364 MB / 361 MB, free: 1.391 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001158/0.1498, allocations: 33.52 kB / 361.1 MB, free: 1.359 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.027e-05/0.1499, allocations: 19.42 kB / 361.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1499, allocations: 0 / 361.1 MB, free: 1.34 MB / 286.1 MB Notification: Performance of Templates: time 0.00523/0.1551, allocations: 1.789 MB / 362.9 MB, free: 15.56 MB / 302.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.IntegerNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches