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.001645/0.001645, allocations: 108.8 kB / 17.16 MB, free: 6.082 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.001893/0.001893, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.189/2.189, allocations: 222.9 MB / 241.7 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001933/0.001933, allocations: 47.64 kB / 300.6 MB, free: 6.305 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1332/0.1352, allocations: 49.45 MB / 350 MB, free: 4.848 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.00525/0.1405, allocations: 1.863 MB / 351.9 MB, free: 2.961 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001842/0.1424, allocations: 0.6194 MB / 352.5 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002211/0.1426, allocations: 4 kB / 352.5 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001977/0.1428, allocations: 19.8 kB / 352.6 MB, free: 2.316 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002189/0.1431, allocations: 23.78 kB / 352.6 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004328/0.1436, allocations: 71.88 kB / 352.6 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003556/0.1439, allocations: 167.4 kB / 352.8 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002543/0.1442, allocations: 70.62 kB / 352.9 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000195/0.1444, allocations: 59.72 kB / 352.9 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002381/0.1447, allocations: 95.53 kB / 353 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.238e-05/0.1448, allocations: 12 kB / 353 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001105/0.1449, allocations: 15.98 kB / 353.1 MB, free: 1.809 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.145, allocations: 35.84 kB / 353.1 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00017/0.1452, allocations: 87.45 kB / 353.2 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002737/0.1455, allocations: 124 kB / 353.3 MB, free: 1.566 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.411e-06/0.1455, allocations: 0 / 353.3 MB, free: 1.566 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1455, allocations: 0 / 353.3 MB, free: 1.566 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.1455, allocations: 0 / 353.3 MB, free: 1.566 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.001443/0.147, allocations: 0.4985 MB / 353.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.335e-05/0.147, allocations: 12.03 kB / 353.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001117/0.1472, allocations: 24.66 kB / 353.8 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003982/0.1476, allocations: 243.8 kB / 354.1 MB, free: 0.707 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.66e-05/0.1476, allocations: 12.38 kB / 354.1 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.643e-05/0.1477, allocations: 20.06 kB / 354.1 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006255/0.1483, allocations: 217.9 kB / 354.3 MB, free: 452 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.1484, allocations: 3.984 kB / 354.3 MB, free: 448 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.512e-05/0.1484, allocations: 8 kB / 354.3 MB, free: 440 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.953e-05/0.1485, allocations: 11.92 kB / 354.3 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005404/0.149, allocations: 143.8 kB / 354.5 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001728/0.1508, allocations: 0.7817 MB / 355.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000982/0.1518, allocations: 178.7 kB / 355.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002549/0.152, allocations: 72.75 kB / 355.5 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.097e-05/0.1521, allocations: 4 kB / 355.5 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000431/0.1525, allocations: 152.9 kB / 355.7 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.756e-06/0.1526, allocations: 0 / 355.7 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001014/0.1536, allocations: 241.3 kB / 355.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.977e-05/0.1537, allocations: 81.11 kB / 356 MB, free: 14.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000338/0.154, allocations: 226.7 kB / 356.2 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.142e-05/0.1541, allocations: 29.7 kB / 356.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.1542, allocations: 140.3 kB / 356.4 MB, free: 14.26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.011e-05/0.1543, allocations: 39.48 kB / 356.4 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001485/0.1545, allocations: 57.69 kB / 356.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.1547, allocations: 326.8 kB / 356.8 MB, free: 13.83 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002716/0.155, allocations: 75.94 kB / 356.9 MB, free: 13.75 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003304/0.1553, allocations: 128.5 kB / 357 MB, free: 13.6 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005922/0.1559, allocations: 212.4 kB / 357.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.156, allocations: 0 / 357.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0008142/0.1568, allocations: 253 kB / 357.4 MB, free: 13.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.992e-05/0.1568, allocations: 8 kB / 357.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.1568, allocations: 0 / 357.4 MB, free: 13.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.046e-05/0.1569, allocations: 8.25 kB / 357.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.1572, allocations: 39.91 kB / 357.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.557e-05/0.1572, allocations: 7.938 kB / 357.5 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003077/0.1576, allocations: 27.83 kB / 357.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.099e-05/0.1576, allocations: 12 kB / 357.5 MB, free: 13 MB / 302.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 (product.y,product.u[2],product.u[1],sum.u[1],triggeredAdd.y,$PRE.triggeredAdd.y,$whenCondition3,$whenCondition2,multiSwitch1.expr[2],multiSwitch1.expr[1],booleanPulse2.pulseStart,$PRE.booleanPulse2.pulseStart,multiSwitch1.firstActiveIndex,multiSwitch1.y,$PRE.multiSwitch1.y,multiSwitch1.u[2],multiSwitch1.u[1],booleanPulse1.pulseStart,$PRE.booleanPulse1.pulseStart,$whenCondition1,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002229/0.1578, allocations: 144 kB / 357.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.655e-05/0.1579, allocations: 19.81 kB / 357.7 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003891/0.1583, allocations: 135.6 kB / 357.8 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.1583, allocations: 8 kB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.568e-06/0.1584, allocations: 3.938 kB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.524e-06/0.1584, allocations: 3.984 kB / 357.8 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001007/0.1594, allocations: 478.2 kB / 358.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.152e-06/0.1594, allocations: 3.984 kB / 358.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.1596, allocations: 19.98 kB / 358.3 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.1596, allocations: 7.938 kB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.511e-05/0.1597, allocations: 8 kB / 358.3 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.222e-06/0.1597, allocations: 3.984 kB / 358.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.1597, allocations: 0 / 358.4 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006845/0.1604, allocations: 280.1 kB / 358.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001252/0.1605, allocations: 100.8 kB / 358.7 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.341e-05/0.1606, allocations: 7.938 kB / 358.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003094/0.1609, allocations: 19.97 kB / 358.8 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.1611, allocations: 23.91 kB / 358.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.501e-05/0.1611, allocations: 8 kB / 358.8 MB, free: 11.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002071/0.1613, allocations: 144.6 kB / 358.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1614, allocations: 0 / 358.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006184/0.162, allocations: 36 kB / 359 MB, free: 11.46 MB / 302.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002241/0.1622, allocations: 123.6 kB / 359.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006698/0.1629, allocations: 171.7 kB / 359.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.1629, allocations: 0 / 359.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003265/0.1633, allocations: 75.89 kB / 359.3 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006382/0.1639, allocations: 32.86 kB / 359.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001199/0.1651, allocations: 448.9 kB / 359.8 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000489/0.1656, allocations: 0.7323 MB / 360.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.1658, allocations: 19.44 kB / 360.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1658, allocations: 0 / 360.5 MB, free: 9.812 MB / 302.1 MB Notification: Performance of Templates: time 0.007496/0.1733, allocations: 2.437 MB / 363 MB, free: 7.383 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/IntegerNetwork1/IntegerNetwork1.csv","/var/lib/jenkins1/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