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.004751/0.004751, allocations: 100.8 kB / 15.87 MB, free: 5.871 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.001196/0.001196, allocations: 195.8 kB / 16.79 MB, free: 5.816 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.388/1.388, allocations: 222.9 MB / 240.5 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.3212/0.3212, allocations: 16.76 MB / 307.4 MB, free: 15.09 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 63.89 kB / 371.6 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.2767, allocations: 53.45 MB / 425.1 MB, free: 39.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002424/0.2792, allocations: 1.145 MB / 426.2 MB, free: 38.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007158/0.2799, allocations: 286.5 kB / 426.5 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.2801, allocations: 2.938 kB / 426.5 MB, free: 38.86 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.2803, allocations: 34.86 kB / 426.5 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001951/0.2805, allocations: 30.91 kB / 426.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001529/0.2806, allocations: 69.95 kB / 426.6 MB, free: 38.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002014/0.2808, allocations: 212.2 kB / 426.8 MB, free: 38.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.805e-05/0.2809, allocations: 31.38 kB / 426.9 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001329/0.2811, allocations: 92.83 kB / 427 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.352e-05/0.2811, allocations: 46.2 kB / 427 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.933e-05/0.2812, allocations: 2.844 kB / 427 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.868e-05/0.2812, allocations: 5.812 kB / 427 MB, free: 38.76 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.279e-05/0.2813, allocations: 23.88 kB / 427 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.928e-05/0.2814, allocations: 46.55 kB / 427.1 MB, free: 38.73 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.448e-05/0.2815, allocations: 52.03 kB / 427.1 MB, free: 38.72 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2815, allocations: 6.562 kB / 427.1 MB, free: 38.72 MB / 350.1 MB Notification: Performance of FrontEnd: time 6.71e-07/0.2815, allocations: 0 / 427.1 MB, free: 38.72 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.2815, allocations: 2.938 kB / 427.2 MB, free: 38.72 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.0004878/0.282, allocations: 433.5 kB / 427.6 MB, free: 38.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.282, allocations: 8.438 kB / 427.6 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.808e-05/0.2821, allocations: 14.81 kB / 427.6 MB, free: 38.3 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001437/0.2822, allocations: 212.3 kB / 427.8 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.321e-05/0.2823, allocations: 12.62 kB / 427.8 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.2823, allocations: 12.23 kB / 427.8 MB, free: 38.07 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002537/0.2825, allocations: 125.9 kB / 428 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.2826, allocations: 2.906 kB / 428 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.2826, allocations: 7.938 kB / 428 MB, free: 37.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.2826, allocations: 6.906 kB / 428 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002393/0.2828, allocations: 63.09 kB / 428 MB, free: 37.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008119/0.2837, allocations: 0.9045 MB / 428.9 MB, free: 37.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001752/0.2839, allocations: 76.77 kB / 429 MB, free: 37.05 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.434e-05/0.2839, allocations: 32.06 kB / 429 MB, free: 37.03 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.047e-05/0.2839, allocations: 7.938 kB / 429.1 MB, free: 37.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002301/0.2842, allocations: 93.25 kB / 429.1 MB, free: 36.96 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 2.204e-06/0.2842, allocations: 0 / 429.1 MB, free: 36.96 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003726/0.2846, allocations: 153.5 kB / 429.3 MB, free: 36.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/0.2846, allocations: 109.5 kB / 429.4 MB, free: 36.76 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001368/0.2848, allocations: 174.8 kB / 429.6 MB, free: 36.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.766e-05/0.2848, allocations: 32.8 kB / 429.6 MB, free: 36.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.827e-05/0.2849, allocations: 114.5 kB / 429.7 MB, free: 36.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.2849, allocations: 22.25 kB / 429.7 MB, free: 36.51 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.987e-05/0.2849, allocations: 41.97 kB / 429.8 MB, free: 36.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.418e-05/0.285, allocations: 324.1 kB / 430.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.929e-05/0.2851, allocations: 26.39 kB / 430.1 MB, free: 36.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.166e-05/0.2852, allocations: 84.89 kB / 430.2 MB, free: 36.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002971/0.2855, allocations: 267.5 kB / 430.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.2855, allocations: 0 / 430.5 MB, free: 35.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000275/0.2858, allocations: 190.9 kB / 430.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.835e-05/0.2859, allocations: 33.86 kB / 430.7 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.827e-06/0.2859, allocations: 8.953 kB / 430.7 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.2859, allocations: 3.031 kB / 430.7 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.554e-05/0.286, allocations: 15.22 kB / 430.7 MB, free: 35.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.053e-05/0.286, allocations: 10.72 kB / 430.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.18e-05/0.2861, allocations: 15.38 kB / 430.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.677e-05/0.2861, allocations: 8.469 kB / 430.7 MB, free: 35.77 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.0001503/0.2863, allocations: 166.1 kB / 430.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.601e-05/0.2863, allocations: 13.5 kB / 430.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.595e-05/0.2863, allocations: 17.61 kB / 430.9 MB, free: 35.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.2863, allocations: 3.984 kB / 430.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2863, allocations: 3.219 kB / 430.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2864, allocations: 0 / 430.9 MB, free: 35.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004276/0.2868, allocations: 0.4923 MB / 431.4 MB, free: 35.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.2868, allocations: 6.781 kB / 431.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.935e-05/0.2868, allocations: 6.844 kB / 431.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.2868, allocations: 0 / 431.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.2869, allocations: 2.781 kB / 431.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-06/0.2869, allocations: 0 / 431.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.2869, allocations: 0 / 431.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000228/0.2871, allocations: 309.6 kB / 431.8 MB, free: 34.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.625e-05/0.2871, allocations: 91.77 kB / 431.8 MB, free: 34.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.2872, allocations: 8.234 kB / 431.8 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.2873, allocations: 7.062 kB / 431.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.857e-05/0.2873, allocations: 10.03 kB / 431.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.746e-06/0.2874, allocations: 6.75 kB / 431.9 MB, free: 34.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.574e-05/0.2874, allocations: 130.4 kB / 432 MB, free: 34.75 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2874, allocations: 0 / 432 MB, free: 34.75 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003104/0.2878, allocations: 24.25 kB / 432 MB, free: 34.74 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.0001139/0.2879, allocations: 96.28 kB / 432.1 MB, free: 34.66 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000238/0.2881, allocations: 147.2 kB / 432.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2881, allocations: 0 / 432.3 MB, free: 34.58 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.77e-05/0.2882, allocations: 94.5 kB / 432.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003328/0.2886, allocations: 9.188 kB / 432.4 MB, free: 34.52 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004975/0.2891, allocations: 291.1 kB / 432.6 MB, free: 34.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.2893, allocations: 0.7046 MB / 433.4 MB, free: 33.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.231e-05/0.2893, allocations: 23.17 kB / 433.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.2893, allocations: 0 / 433.4 MB, free: 33.59 MB / 350.1 MB Notification: Performance of Templates: time 0.003221/0.2926, allocations: 1.443 MB / 434.8 MB, free: 33.46 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