Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo", uses=false) Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo) 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(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006556/0.006556, allocations: 98.22 kB / 15.73 MB, free: 6.008 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.001298/0.001298, allocations: 192.2 kB / 16.67 MB, free: 5.938 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.453/1.453, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.264/0.264, allocations: 16.75 MB / 307.3 MB, free: 14.84 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001282, allocations: 66.05 kB / 426.4 MB, free: 37.42 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1545, allocations: 53.47 MB / 479.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002323/0.1569, allocations: 1.056 MB / 480.9 MB, free: 9.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007244/0.1576, allocations: 282.4 kB / 481.2 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001717/0.1578, allocations: 1.219 kB / 481.2 MB, free: 9.633 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.158, allocations: 42.66 kB / 481.2 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002638/0.1583, allocations: 41.33 kB / 481.2 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.1585, allocations: 70.08 kB / 481.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003147/0.1588, allocations: 239 kB / 481.5 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.425e-05/0.1589, allocations: 22.03 kB / 481.6 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001441/0.159, allocations: 117.2 kB / 481.7 MB, free: 9.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.036e-05/0.1591, allocations: 52.73 kB / 481.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.166e-05/0.1591, allocations: 4.219 kB / 481.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.735e-05/0.1592, allocations: 11.47 kB / 481.7 MB, free: 9.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.486e-05/0.1593, allocations: 19.48 kB / 481.8 MB, free: 9.215 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.073e-05/0.1593, allocations: 42.05 kB / 481.8 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001904/0.1595, allocations: 84.88 kB / 481.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1596, allocations: 0 / 481.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1596, allocations: 0 / 481.9 MB, free: 9.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.1596, allocations: 0 / 481.9 MB, free: 9.117 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0006098/0.1602, allocations: 439.6 kB / 482.3 MB, free: 8.668 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1602, allocations: 12.89 kB / 482.3 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.039e-05/0.1603, allocations: 14.41 kB / 482.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001731/0.1605, allocations: 209.8 kB / 482.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.663e-05/0.1605, allocations: 7.594 kB / 482.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.142e-05/0.1606, allocations: 5.344 kB / 482.6 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002825/0.1608, allocations: 136.9 kB / 482.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.1609, allocations: 1.281 kB / 482.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.729e-05/0.1609, allocations: 5.125 kB / 482.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.1609, allocations: 2.625 kB / 482.7 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002063/0.1611, allocations: 72.23 kB / 482.8 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007705/0.1619, allocations: 0.901 MB / 483.7 MB, free: 7.297 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001686/0.1621, allocations: 81.67 kB / 483.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.439e-05/0.1621, allocations: 32.69 kB / 483.8 MB, free: 7.199 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.12e-05/0.1622, allocations: 9.25 kB / 483.8 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002032/0.1624, allocations: 96.34 kB / 483.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.793e-06/0.1624, allocations: 1.375 kB / 483.9 MB, free: 7.098 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003512/0.1627, allocations: 161.1 kB / 484.1 MB, free: 6.984 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.054e-05/0.1628, allocations: 109.5 kB / 484.2 MB, free: 6.855 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001444/0.163, allocations: 164.9 kB / 484.3 MB, free: 6.723 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.711e-05/0.163, allocations: 31.08 kB / 484.3 MB, free: 6.688 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.66e-05/0.1631, allocations: 117.7 kB / 484.5 MB, free: 6.57 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.166e-05/0.1631, allocations: 23.97 kB / 484.5 MB, free: 6.551 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.362e-05/0.1631, allocations: 39.45 kB / 484.5 MB, free: 6.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.267e-05/0.1632, allocations: 325.6 kB / 484.8 MB, free: 6.195 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.917e-05/0.1633, allocations: 36.48 kB / 484.9 MB, free: 6.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.872e-05/0.1634, allocations: 79.47 kB / 485 MB, free: 6.094 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003295/0.1637, allocations: 263.6 kB / 485.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1638, allocations: 0 / 485.2 MB, free: 5.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003131/0.1641, allocations: 191 kB / 485.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.333e-05/0.1641, allocations: 31.33 kB / 485.4 MB, free: 5.684 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1641, allocations: 6.281 kB / 485.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.1642, allocations: 3.969 kB / 485.4 MB, free: 5.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.1643, allocations: 15.08 kB / 485.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.868e-06/0.1643, allocations: 2.219 kB / 485.5 MB, free: 5.676 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.647e-05/0.1644, allocations: 18.64 kB / 485.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.061e-05/0.1644, allocations: 14.02 kB / 485.5 MB, free: 5.656 MB / 350.1 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.T1.firingTime,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * 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.0001536/0.1646, allocations: 167.3 kB / 485.7 MB, free: 5.488 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.794e-05/0.1646, allocations: 18.34 kB / 485.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.1646, allocations: 20.42 kB / 485.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.038e-06/0.1646, allocations: 1.312 kB / 485.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.1647, allocations: 1.312 kB / 485.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1647, allocations: 0 / 485.7 MB, free: 5.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000408/0.1651, allocations: 496.1 kB / 486.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1651, allocations: 1.438 kB / 486.2 MB, free: 4.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.246e-05/0.1651, allocations: 15.48 kB / 486.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.025e-06/0.1651, allocations: 0.875 kB / 486.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.1652, allocations: 1.188 kB / 486.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1652, allocations: 0.6875 kB / 486.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1652, allocations: 1.219 kB / 486.2 MB, free: 4.969 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002289/0.1654, allocations: 321.8 kB / 486.5 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.027e-05/0.1654, allocations: 92.66 kB / 486.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.1655, allocations: 2.469 kB / 486.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001003/0.1656, allocations: 2.406 kB / 486.6 MB, free: 4.574 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.125e-05/0.1656, allocations: 13.52 kB / 486.6 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.1657, allocations: 7.984 kB / 486.6 MB, free: 4.562 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.725e-05/0.1657, allocations: 127.4 kB / 486.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1657, allocations: 0 / 486.8 MB, free: 4.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003034/0.1661, allocations: 29.75 kB / 486.8 MB, free: 4.449 MB / 350.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: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.0001224/0.1662, allocations: 105.6 kB / 486.9 MB, free: 4.359 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002556/0.1664, allocations: 148.4 kB / 487 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.1665, allocations: 0 / 487 MB, free: 4.254 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.819e-05/0.1666, allocations: 90.39 kB / 487.1 MB, free: 4.176 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.1669, allocations: 15.48 kB / 487.1 MB, free: 4.168 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005452/0.1675, allocations: 238.9 kB / 487.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001521/0.1676, allocations: 0.7071 MB / 488.1 MB, free: 3.254 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.028e-05/0.1677, allocations: 23.62 kB / 488.1 MB, free: 3.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.884e-05/0.1677, allocations: 18.25 kB / 488.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1678, allocations: 0 / 488.1 MB, free: 3.23 MB / 350.1 MB Notification: Performance of Templates: time 0.003668/0.1714, allocations: 1.025 MB / 489.1 MB, free: 2.715 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & ./PNlib_PNlib.Examples.DisTest.SingleTD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches