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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.006775/0.006775, allocations: 171.9 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.621/1.621, allocations: 205.4 MB / 221.3 MB, free: 13.82 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001056/0.001055, allocations: 94.86 kB / 269.6 MB, free: 13.34 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06446/0.06446, allocations: 16.88 MB / 334.7 MB, free: 5.996 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003004/0.0003003, allocations: 18.5 kB / 396.9 MB, free: 46.2 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08193/0.08224, allocations: 51.68 MB / 448.6 MB, free: 232 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1034/0.1857, allocations: 77.05 MB / 0.5133 GB, free: 3.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002057/0.186, allocations: 71.95 kB / 0.5134 GB, free: 3 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004347/0.1903, allocations: 1.91 MB / 0.5153 GB, free: 1.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1903, allocations: 4 kB / 0.5153 GB, free: 1.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.658e-06/0.1904, allocations: 4 kB / 0.5153 GB, free: 1.062 MB / 362.7 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.000468/0.1908, allocations: 425 kB / 0.5157 GB, free: 0.5938 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.1909, allocations: 8.031 kB / 0.5157 GB, free: 0.5859 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.603e-05/0.1909, allocations: 15.8 kB / 0.5157 GB, free: 0.5703 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002135/0.1911, allocations: 191.5 kB / 0.5159 GB, free: 352 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.1912, allocations: 11.98 kB / 0.5159 GB, free: 340 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.1912, allocations: 7.938 kB / 0.5159 GB, free: 332 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.1915, allocations: 133.5 kB / 0.516 GB, free: 176 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.1915, allocations: 7.922 kB / 0.516 GB, free: 168 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.486e-05/0.1915, allocations: 4 kB / 0.5161 GB, free: 164 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1915, allocations: 4 kB / 0.5161 GB, free: 160 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001956/0.1917, allocations: 71.83 kB / 0.5161 GB, free: 88 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1909/0.3827, allocations: 0.7426 MB / 0.5168 GB, free: 80.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001826/0.3829, allocations: 84.09 kB / 0.5169 GB, free: 79.97 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.588e-06/0.3829, allocations: 3.156 kB / 0.5169 GB, free: 79.97 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001661/0.3831, allocations: 88.31 kB / 0.517 GB, free: 79.91 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 2.685e-06/0.3831, allocations: 0 / 0.517 GB, free: 79.91 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003398/0.3835, allocations: 147 kB / 0.5172 GB, free: 79.84 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.3835, allocations: 111.7 kB / 0.5173 GB, free: 79.71 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001192/0.3837, allocations: 154.8 kB / 0.5174 GB, free: 79.62 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.3837, allocations: 29.8 kB / 0.5174 GB, free: 79.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.085e-05/0.3837, allocations: 112.5 kB / 0.5175 GB, free: 79.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.772e-05/0.3838, allocations: 23.89 kB / 0.5176 GB, free: 79.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.783e-06/0.3838, allocations: 3.844 kB / 0.5176 GB, free: 79.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.156e-05/0.3838, allocations: 325 kB / 0.5179 GB, free: 79.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.237e-05/0.3839, allocations: 30.84 kB / 0.5179 GB, free: 79.18 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.846e-05/0.384, allocations: 82.03 kB / 0.518 GB, free: 79.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.996e-05/0.3841, allocations: 62.7 kB / 0.5181 GB, free: 79.08 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.3841, allocations: 3.531 kB / 0.5181 GB, free: 79.08 MB / 362.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002496/0.3844, allocations: 179 kB / 0.5182 GB, free: 79.02 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.666e-05/0.3844, allocations: 32.23 kB / 0.5183 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.3844, allocations: 2.156 kB / 0.5183 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3844, allocations: 8.391 kB / 0.5183 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.188e-05/0.3845, allocations: 20.17 kB / 0.5183 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.388e-06/0.3846, allocations: 5.172 kB / 0.5183 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.677e-05/0.3846, allocations: 21.2 kB / 0.5183 GB, free: 78.98 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.238e-05/0.3846, allocations: 5.781 kB / 0.5183 GB, free: 78.98 MB / 362.7 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: 14 ($whenCondition1,$PRE.T1.firingTime,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,T1.active,$PRE.T1.fireTime,T1.fireTime,$PRE.T1.ani,T1.ani,T1.firingCon,T1.enabledByInPlaces,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001407/0.3848, allocations: 156.7 kB / 0.5185 GB, free: 78.83 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.925e-05/0.3848, allocations: 10.98 kB / 0.5185 GB, free: 78.83 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.399e-05/0.3849, allocations: 20.39 kB / 0.5185 GB, free: 78.81 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.3849, allocations: 0 / 0.5185 GB, free: 78.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.3849, allocations: 5.484 kB / 0.5185 GB, free: 78.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.3849, allocations: 0.8438 kB / 0.5185 GB, free: 78.81 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002904/0.3852, allocations: 387.7 kB / 0.5189 GB, free: 78.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3852, allocations: 1.031 kB / 0.5189 GB, free: 78.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.415e-05/0.3852, allocations: 5.141 kB / 0.5189 GB, free: 78.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.3852, allocations: 1.188 kB / 0.5189 GB, free: 78.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.309e-05/0.3853, allocations: 10.47 kB / 0.5189 GB, free: 78.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.3853, allocations: 1.062 kB / 0.5189 GB, free: 78.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3853, allocations: 5.469 kB / 0.5189 GB, free: 78.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002233/0.3855, allocations: 235.5 kB / 0.5191 GB, free: 78.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.428e-05/0.3856, allocations: 95.47 kB / 0.5192 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.013e-05/0.3856, allocations: 6.719 kB / 0.5192 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.119e-05/0.3857, allocations: 8.641 kB / 0.5192 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.709e-05/0.3857, allocations: 14.5 kB / 0.5192 GB, free: 78.18 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.3858, allocations: 3.125 kB / 0.5192 GB, free: 78.18 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.24e-05/0.3858, allocations: 122.7 kB / 0.5194 GB, free: 78.1 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3858, allocations: 0 / 0.5194 GB, free: 78.1 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002358/0.3861, allocations: 19.5 kB / 0.5194 GB, free: 78.1 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (T1.fireTime,T1.ani,T1.active,$whenCondition1,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 (8): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.038e-05/0.3862, allocations: 101.2 kB / 0.5195 GB, free: 78.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002302/0.3864, allocations: 146.6 kB / 0.5196 GB, free: 77.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.3864, allocations: 0.5469 kB / 0.5196 GB, free: 77.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.896e-05/0.3865, allocations: 80.64 kB / 0.5197 GB, free: 77.88 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001811/0.3867, allocations: 14.5 kB / 0.5197 GB, free: 77.88 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004004/0.3871, allocations: 238.1 kB / 0.5199 GB, free: 77.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001614/0.3873, allocations: 0.7124 MB / 0.5206 GB, free: 77 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 5.373e-05/0.3874, allocations: 14.55 kB / 0.5206 GB, free: 77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.195e-05/0.3874, allocations: 12.91 kB / 0.5207 GB, free: 76.99 MB / 362.7 MB Notification: Performance of SimCode: time 3.9e-07/0.3874, allocations: 0 / 0.5207 GB, free: 76.99 MB / 362.7 MB Notification: Performance of Templates: time 0.003042/0.3905, allocations: 0.7722 MB / 0.5214 GB, free: 76.94 MB / 362.7 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