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.001702/0.001702, allocations: 115.6 kB / 16.37 MB, free: 6.004 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.001989/0.001989, allocations: 192.1 kB / 17.31 MB, free: 5.613 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.348/1.348, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.09252/0.09252, allocations: 16.73 MB / 307.9 MB, free: 14.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 62.45 kB / 373 MB, free: 48.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0783/0.07956, allocations: 53.47 MB / 426.5 MB, free: 11.71 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002021/0.08161, allocations: 1.056 MB / 427.6 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005035/0.08213, allocations: 279.7 kB / 427.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.067e-05/0.08221, allocations: 3.938 kB / 427.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000121/0.08234, allocations: 39.72 kB / 427.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001814/0.08253, allocations: 35.73 kB / 427.9 MB, free: 10.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001206/0.08266, allocations: 79.83 kB / 428 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002136/0.08288, allocations: 239.4 kB / 428.2 MB, free: 9.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.629e-05/0.08295, allocations: 16.41 kB / 428.2 MB, free: 9.973 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.723e-05/0.08305, allocations: 107.7 kB / 428.3 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.434e-05/0.08311, allocations: 55.53 kB / 428.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.621e-05/0.08313, allocations: 4 kB / 428.4 MB, free: 9.809 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.904e-05/0.08319, allocations: 15.94 kB / 428.4 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.724e-05/0.08326, allocations: 23.89 kB / 428.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.182e-05/0.08331, allocations: 35.75 kB / 428.5 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001073/0.08342, allocations: 87.66 kB / 428.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.08343, allocations: 0 / 428.6 MB, free: 9.648 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.08344, allocations: 4 kB / 428.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.08345, allocations: 0 / 428.6 MB, free: 9.645 MB / 302.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.0004071/0.08386, allocations: 440.6 kB / 429 MB, free: 9.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.71e-05/0.08389, allocations: 11.89 kB / 429 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.676e-05/0.08394, allocations: 16.84 kB / 429 MB, free: 9.133 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.08408, allocations: 204.4 kB / 429.2 MB, free: 8.895 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.178e-05/0.08411, allocations: 4 kB / 429.2 MB, free: 8.891 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.635e-05/0.08413, allocations: 8 kB / 429.2 MB, free: 8.883 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002205/0.08436, allocations: 137.3 kB / 429.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.08437, allocations: 4 kB / 429.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.08439, allocations: 11.98 kB / 429.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.0844, allocations: 0 / 429.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001703/0.08457, allocations: 59.91 kB / 429.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005353/0.08512, allocations: 0.9097 MB / 430.4 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000144/0.08527, allocations: 85.2 kB / 430.4 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.798e-05/0.08534, allocations: 29.72 kB / 430.5 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-06/0.08536, allocations: 7.938 kB / 430.5 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.08553, allocations: 93.03 kB / 430.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.313e-06/0.08554, allocations: 0 / 430.6 MB, free: 7.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003202/0.08586, allocations: 155.2 kB / 430.7 MB, free: 7.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.08591, allocations: 110.8 kB / 430.8 MB, free: 7.086 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001152/0.08603, allocations: 182.1 kB / 431 MB, free: 6.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.067e-05/0.08605, allocations: 25.7 kB / 431 MB, free: 6.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.762e-05/0.0861, allocations: 120.2 kB / 431.1 MB, free: 6.742 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.692e-05/0.08613, allocations: 19.75 kB / 431.2 MB, free: 6.723 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.41e-05/0.08618, allocations: 37.61 kB / 431.2 MB, free: 6.68 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.646e-05/0.08623, allocations: 326.8 kB / 431.5 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.569e-05/0.0863, allocations: 27.98 kB / 431.5 MB, free: 6.324 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.584e-05/0.08638, allocations: 85.77 kB / 431.6 MB, free: 6.219 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002487/0.08663, allocations: 269.8 kB / 431.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.08665, allocations: 0 / 431.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002219/0.08687, allocations: 183 kB / 432.1 MB, free: 5.715 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/0.0869, allocations: 37.64 kB / 432.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.229e-06/0.08691, allocations: 4.188 kB / 432.1 MB, free: 5.668 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.386e-05/0.08693, allocations: 4 kB / 432.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.872e-05/0.08702, allocations: 19.92 kB / 432.1 MB, free: 5.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.08703, allocations: 4 kB / 432.1 MB, free: 5.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.217e-05/0.0871, allocations: 19.83 kB / 432.2 MB, free: 5.621 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.404e-05/0.08712, allocations: 8 kB / 432.2 MB, free: 5.613 MB / 302.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.0001221/0.08724, allocations: 159.5 kB / 432.3 MB, free: 5.441 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.945e-05/0.08727, allocations: 15.84 kB / 432.3 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.922e-05/0.0873, allocations: 20.92 kB / 432.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.933e-06/0.08731, allocations: 0 / 432.4 MB, free: 5.406 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.08732, allocations: 3.938 kB / 432.4 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.08732, allocations: 0 / 432.4 MB, free: 5.402 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003469/0.08768, allocations: 0.4915 MB / 432.9 MB, free: 4.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.08769, allocations: 3.984 kB / 432.9 MB, free: 4.844 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.725e-05/0.08772, allocations: 4 kB / 432.9 MB, free: 4.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.08773, allocations: 4 kB / 432.9 MB, free: 4.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.024e-05/0.08774, allocations: 4 kB / 432.9 MB, free: 4.832 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.08775, allocations: 4 kB / 432.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.08776, allocations: 240 / 432.9 MB, free: 4.828 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001822/0.08794, allocations: 312.2 kB / 433.2 MB, free: 4.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.514e-05/0.08799, allocations: 88.92 kB / 433.3 MB, free: 4.395 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.044e-05/0.08801, allocations: 4 kB / 433.3 MB, free: 4.391 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.908e-05/0.08812, allocations: 16.11 kB / 433.3 MB, free: 4.375 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.83e-05/0.08817, allocations: 15.98 kB / 433.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.08818, allocations: 0 / 433.3 MB, free: 4.359 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.933e-05/0.08825, allocations: 124.2 kB / 433.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.08825, allocations: 0 / 433.4 MB, free: 4.238 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002867/0.08854, allocations: 27.94 kB / 433.5 MB, free: 4.211 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: 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 8.885e-05/0.08864, allocations: 99.19 kB / 433.6 MB, free: 4.105 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002098/0.08886, allocations: 147.3 kB / 433.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.08887, allocations: 0 / 433.7 MB, free: 3.949 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.166e-05/0.08895, allocations: 87.33 kB / 433.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000312/0.08928, allocations: 15.98 kB / 433.8 MB, free: 3.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003963/0.08968, allocations: 231.2 kB / 434 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001061/0.0898, allocations: 0.7161 MB / 434.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.293e-05/0.08987, allocations: 20.62 kB / 434.8 MB, free: 2.82 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.65e-05/0.0899, allocations: 11.44 kB / 434.8 MB, free: 2.809 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.08991, allocations: 0 / 434.8 MB, free: 2.809 MB / 302.1 MB Notification: Performance of Templates: time 0.002944/0.09285, allocations: 1.02 MB / 435.8 MB, free: 1.797 MB / 302.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches