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.001693/0.001693, allocations: 114.6 kB / 17.7 MB, free: 5.309 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.001759/0.001759, allocations: 191 kB / 18.63 MB, free: 4.379 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.621/1.621, allocations: 222.9 MB / 242.3 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001841/0.001841, allocations: 46.86 kB / 302.1 MB, free: 5.219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1579/0.1598, allocations: 49.45 MB / 351.5 MB, free: 3.746 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.IntegerNetwork1): time 0.004388/0.1642, allocations: 1.817 MB / 353.3 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0013/0.1656, allocations: 0.6232 MB / 353.9 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001216/0.1657, allocations: 3.938 kB / 353.9 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.1659, allocations: 31.67 kB / 354 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001485/0.166, allocations: 27.72 kB / 354 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003316/0.1664, allocations: 83.78 kB / 354.1 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002492/0.1666, allocations: 175.5 kB / 354.3 MB, free: 0.9688 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.1669, allocations: 70.62 kB / 354.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.167, allocations: 83.64 kB / 354.4 MB, free: 0.8125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.1672, allocations: 87.59 kB / 354.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.1673, allocations: 12 kB / 354.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.1674, allocations: 24 kB / 354.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.883e-05/0.1675, allocations: 39.84 kB / 354.6 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001016/0.1676, allocations: 95.33 kB / 354.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002779/0.1679, allocations: 191.3 kB / 354.8 MB, free: 380 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.418e-06/0.1679, allocations: 4 kB / 354.8 MB, free: 376 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.1679, allocations: 3.938 kB / 354.8 MB, free: 372 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.342e-06/0.168, allocations: 0 / 354.8 MB, free: 372 kB / 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.001078/0.169, allocations: 0.5063 MB / 355.4 MB, free: 15.81 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.986e-05/0.1691, allocations: 12.03 kB / 355.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.948e-05/0.1692, allocations: 20.66 kB / 355.4 MB, free: 15.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003856/0.1696, allocations: 252.3 kB / 355.6 MB, free: 15.49 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.1696, allocations: 12.38 kB / 355.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.152e-05/0.1697, allocations: 24.12 kB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003923/0.1701, allocations: 201.9 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.588e-06/0.1701, allocations: 4 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.1701, allocations: 4 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.467e-05/0.1701, allocations: 8 kB / 355.9 MB, free: 15.22 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003208/0.1705, allocations: 143.7 kB / 356 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001177/0.1716, allocations: 0.7778 MB / 356.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006766/0.1723, allocations: 190.6 kB / 357 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001535/0.1725, allocations: 60.83 kB / 357 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.843e-05/0.1726, allocations: 11.94 kB / 357.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003234/0.1729, allocations: 144.9 kB / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.443e-06/0.1729, allocations: 0 / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007652/0.1737, allocations: 253.2 kB / 357.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001158/0.1738, allocations: 85.11 kB / 357.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002936/0.1741, allocations: 222.7 kB / 357.7 MB, free: 13.23 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.59e-05/0.1742, allocations: 29.7 kB / 357.8 MB, free: 13.2 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.1743, allocations: 136.3 kB / 357.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.276e-05/0.1744, allocations: 31.55 kB / 357.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001267/0.1745, allocations: 61.69 kB / 358 MB, free: 12.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001967/0.1747, allocations: 326.8 kB / 358.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001689/0.1749, allocations: 75.89 kB / 358.4 MB, free: 12.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000266/0.1752, allocations: 136.8 kB / 358.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004276/0.1756, allocations: 212.4 kB / 358.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.1756, allocations: 4 kB / 358.7 MB, free: 12.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005164/0.1762, allocations: 249.1 kB / 359 MB, free: 11.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.1762, allocations: 8 kB / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.021e-05/0.1762, allocations: 0 / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.565e-05/0.1762, allocations: 4 kB / 359 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.1764, allocations: 40.17 kB / 359 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.064e-05/0.1765, allocations: 11.94 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001786/0.1767, allocations: 31.81 kB / 359.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.066e-05/0.1767, allocations: 11.94 kB / 359.1 MB, free: 11.8 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.0002106/0.1769, allocations: 155.9 kB / 359.2 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.012e-05/0.177, allocations: 19.81 kB / 359.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003245/0.1773, allocations: 131 kB / 359.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1773, allocations: 8 kB / 359.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.008e-05/0.1773, allocations: 3.938 kB / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.1773, allocations: 0 / 359.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007951/0.1781, allocations: 478.2 kB / 359.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.375e-06/0.1782, allocations: 3.938 kB / 359.9 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.1783, allocations: 19.98 kB / 359.9 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.434e-06/0.1783, allocations: 4.25 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.1783, allocations: 4 kB / 359.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.077e-06/0.1784, allocations: 8 kB / 359.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.1784, allocations: 0 / 359.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004644/0.1788, allocations: 280.1 kB / 360.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.54e-05/0.1789, allocations: 104.8 kB / 360.3 MB, free: 10.49 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.763e-05/0.179, allocations: 7.938 kB / 360.3 MB, free: 10.48 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001836/0.1792, allocations: 15.98 kB / 360.3 MB, free: 10.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/0.1793, allocations: 23.97 kB / 360.3 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.487e-05/0.1793, allocations: 8 kB / 360.3 MB, free: 10.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001333/0.1794, allocations: 148.6 kB / 360.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1794, allocations: 192 / 360.5 MB, free: 10.29 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003058/0.1798, allocations: 36 kB / 360.5 MB, free: 10.25 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.000176/0.1799, allocations: 111.2 kB / 360.6 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004068/0.1804, allocations: 183.6 kB / 360.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1804, allocations: 0 / 360.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001766/0.1806, allocations: 75.91 kB / 360.9 MB, free: 9.883 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003371/0.1809, allocations: 28.8 kB / 360.9 MB, free: 9.855 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006965/0.1816, allocations: 361.9 kB / 361.3 MB, free: 9.473 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000416/0.182, allocations: 0.728 MB / 362 MB, free: 8.719 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.1822, allocations: 37.52 kB / 362 MB, free: 8.684 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.7e-05/0.1822, allocations: 23.38 kB / 362 MB, free: 8.66 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1822, allocations: 0 / 362 MB, free: 8.66 MB / 302.1 MB Notification: Performance of Templates: time 0.005774/0.188, allocations: 2.112 MB / 364.2 MB, free: 6.566 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 -s cvode -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