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.001482/0.001482, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001776/0.001776, allocations: 189.9 kB / 16.14 MB, free: 6.656 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.328/1.328, allocations: 222.9 MB / 239.8 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1767/0.1767, allocations: 16.76 MB / 306.7 MB, free: 15.06 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001293/0.001293, allocations: 67.88 kB / 371 MB, free: 3.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.259/0.2604, allocations: 53.45 MB / 424.4 MB, free: 39.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002064/0.2625, allocations: 1.145 MB / 425.6 MB, free: 39.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006005/0.2631, allocations: 294.5 kB / 425.8 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.275e-05/0.2632, allocations: 2.938 kB / 425.8 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001507/0.2633, allocations: 33.44 kB / 425.9 MB, free: 39.28 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001797/0.2635, allocations: 25.45 kB / 425.9 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001243/0.2637, allocations: 78.02 kB / 426 MB, free: 39.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000173/0.2638, allocations: 208 kB / 426.2 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.908e-05/0.2639, allocations: 21.44 kB / 426.2 MB, free: 39.23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.264, allocations: 101.2 kB / 426.3 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.581e-05/0.2641, allocations: 47.61 kB / 426.3 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.795e-05/0.2641, allocations: 3.062 kB / 426.3 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.182e-05/0.2642, allocations: 9 kB / 426.4 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.66e-05/0.2643, allocations: 24.09 kB / 426.4 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.238e-05/0.2643, allocations: 46.69 kB / 426.4 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.2644, allocations: 71.44 kB / 426.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.03e-06/0.2645, allocations: 0 / 426.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.2645, allocations: 0 / 426.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.743e-06/0.2645, allocations: 0 / 426.5 MB, free: 39.14 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.0004488/0.2649, allocations: 438.4 kB / 426.9 MB, free: 38.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.129e-05/0.265, allocations: 9.469 kB / 426.9 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.19e-05/0.265, allocations: 15.67 kB / 427 MB, free: 38.72 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001427/0.2652, allocations: 209.6 kB / 427.2 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.234e-05/0.2652, allocations: 10.81 kB / 427.2 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.753e-05/0.2652, allocations: 5.75 kB / 427.2 MB, free: 38.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002574/0.2655, allocations: 134.8 kB / 427.3 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.156e-06/0.2655, allocations: 0 / 427.3 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.2655, allocations: 5.562 kB / 427.3 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.2655, allocations: 0 / 427.3 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001888/0.2657, allocations: 66.88 kB / 427.4 MB, free: 38.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000586/0.2663, allocations: 0.9008 MB / 428.3 MB, free: 37.53 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.2665, allocations: 88.41 kB / 428.4 MB, free: 37.47 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.037e-05/0.2665, allocations: 35.02 kB / 428.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.808e-06/0.2666, allocations: 6.719 kB / 428.4 MB, free: 37.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001702/0.2667, allocations: 91.3 kB / 428.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.292e-06/0.2668, allocations: 0 / 428.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0002988/0.2671, allocations: 159.8 kB / 428.6 MB, free: 37.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.25e-05/0.2671, allocations: 106.8 kB / 428.8 MB, free: 37.18 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001097/0.2672, allocations: 171.9 kB / 428.9 MB, free: 37.08 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.219e-05/0.2672, allocations: 32.2 kB / 429 MB, free: 37.05 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.296e-05/0.2673, allocations: 116 kB / 429.1 MB, free: 36.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.2673, allocations: 21.09 kB / 429.1 MB, free: 36.94 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/0.2674, allocations: 43.25 kB / 429.1 MB, free: 36.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.579e-05/0.2674, allocations: 324.6 kB / 429.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.162e-05/0.2675, allocations: 32.14 kB / 429.5 MB, free: 36.6 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.052e-05/0.2676, allocations: 82.89 kB / 429.6 MB, free: 36.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002805/0.2679, allocations: 260.1 kB / 429.8 MB, free: 36.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/0.2679, allocations: 3.938 kB / 429.8 MB, free: 36.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002529/0.2681, allocations: 199.6 kB / 430 MB, free: 36.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.2682, allocations: 34.27 kB / 430 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.2682, allocations: 2.938 kB / 430 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.2682, allocations: 0 / 430 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.649e-05/0.2683, allocations: 20.8 kB / 430.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.2683, allocations: 2.688 kB / 430.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.441e-05/0.2684, allocations: 15.08 kB / 430.1 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.2684, allocations: 7.281 kB / 430.1 MB, free: 36.2 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.000131/0.2685, allocations: 174.8 kB / 430.3 MB, free: 36.04 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.019e-05/0.2686, allocations: 13.31 kB / 430.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.057e-05/0.2686, allocations: 16.19 kB / 430.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.267e-06/0.2686, allocations: 3.234 kB / 430.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.2686, allocations: 2.5 kB / 430.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.616e-06/0.2686, allocations: 3.031 kB / 430.3 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003708/0.269, allocations: 499.6 kB / 430.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.269, allocations: 0 / 430.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.89e-05/0.2691, allocations: 6.141 kB / 430.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2691, allocations: 2.75 kB / 430.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.968e-06/0.2691, allocations: 3.188 kB / 430.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.2691, allocations: 0 / 430.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2691, allocations: 2.844 kB / 430.8 MB, free: 35.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002036/0.2693, allocations: 307.9 kB / 431.1 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.716e-05/0.2693, allocations: 93.98 kB / 431.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.449e-05/0.2694, allocations: 9.875 kB / 431.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.2695, allocations: 2.531 kB / 431.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.647e-05/0.2695, allocations: 12.38 kB / 431.2 MB, free: 35.25 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.317e-06/0.2696, allocations: 10.28 kB / 431.2 MB, free: 35.24 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.51e-05/0.2696, allocations: 122.3 kB / 431.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2696, allocations: 0 / 431.3 MB, free: 35.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.2699, allocations: 25.2 kB / 431.4 MB, free: 35.15 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.0001094/0.27, allocations: 109.8 kB / 431.5 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002205/0.2703, allocations: 144.2 kB / 431.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2703, allocations: 0 / 431.6 MB, free: 34.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.275e-05/0.2704, allocations: 88.66 kB / 431.7 MB, free: 34.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003362/0.2707, allocations: 14.31 kB / 431.7 MB, free: 34.88 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004414/0.2712, allocations: 267.6 kB / 432 MB, free: 34.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001171/0.2713, allocations: 0.705 MB / 432.7 MB, free: 33.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.642e-05/0.2714, allocations: 24.28 kB / 432.7 MB, free: 33.97 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.309e-05/0.2714, allocations: 16.34 kB / 432.7 MB, free: 33.96 MB / 350.1 MB Notification: Performance of SimCode: time 4.01e-07/0.2714, allocations: 0 / 432.7 MB, free: 33.96 MB / 350.1 MB Notification: Performance of Templates: time 0.003036/0.2745, allocations: 0.9287 MB / 433.7 MB, free: 33.87 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","../files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches