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.001311/0.001312, allocations: 172.6 kB / 16.12 MB, free: 5.695 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.47/1.47, allocations: 205.4 MB / 222.3 MB, free: 9.027 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.0008498/0.0008497, allocations: 88.7 kB / 270.6 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07283/0.07283, allocations: 16.9 MB / 335.8 MB, free: 6.949 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003367/0.0003368, allocations: 16 kB / 398.2 MB, free: 61.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07517/0.07553, allocations: 51.7 MB / 449.8 MB, free: 9.797 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2857/0.3613, allocations: 77.08 MB / 0.5146 GB, free: 11.66 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.3616, allocations: 68.22 kB / 0.5146 GB, free: 11.62 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.004548/0.3661, allocations: 1.92 MB / 0.5165 GB, free: 9.969 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3662, allocations: 0 / 0.5165 GB, free: 9.969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.3662, allocations: 4 kB / 0.5165 GB, free: 9.965 MB / 346.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.0004355/0.3666, allocations: 408.5 kB / 0.5169 GB, free: 9.52 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3667, allocations: 12.03 kB / 0.5169 GB, free: 9.508 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.3667, allocations: 12.75 kB / 0.5169 GB, free: 9.496 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.3669, allocations: 207.7 kB / 0.5171 GB, free: 9.262 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.215e-05/0.367, allocations: 12.38 kB / 0.5171 GB, free: 9.254 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.628e-05/0.367, allocations: 8 kB / 0.5172 GB, free: 9.246 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002575/0.3672, allocations: 134.9 kB / 0.5173 GB, free: 9.113 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/0.3673, allocations: 3.938 kB / 0.5173 GB, free: 9.109 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.394e-05/0.3673, allocations: 4 kB / 0.5173 GB, free: 9.105 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3673, allocations: 4 kB / 0.5173 GB, free: 9.102 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001944/0.3675, allocations: 66.02 kB / 0.5174 GB, free: 9.051 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006949/0.3682, allocations: 0.7469 MB / 0.5181 GB, free: 8.277 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001792/0.3684, allocations: 81.97 kB / 0.5182 GB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.782e-05/0.3685, allocations: 36 kB / 0.5182 GB, free: 8.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-06/0.3685, allocations: 0 / 0.5182 GB, free: 8.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001323/0.3686, allocations: 91.28 kB / 0.5183 GB, free: 8.062 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.212e-06/0.3686, allocations: 0 / 0.5183 GB, free: 8.062 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003232/0.369, allocations: 152.1 kB / 0.5184 GB, free: 7.918 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.013e-05/0.369, allocations: 106.8 kB / 0.5185 GB, free: 7.789 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001771/0.3692, allocations: 175.6 kB / 0.5187 GB, free: 7.633 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.3693, allocations: 25.7 kB / 0.5187 GB, free: 7.602 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.3693, allocations: 118.1 kB / 0.5188 GB, free: 7.496 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.717e-05/0.3694, allocations: 15.69 kB / 0.5189 GB, free: 7.484 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.622e-06/0.3694, allocations: 7.5 kB / 0.5189 GB, free: 7.48 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001172/0.3695, allocations: 326.6 kB / 0.5192 GB, free: 7.156 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.903e-05/0.3696, allocations: 33.42 kB / 0.5192 GB, free: 7.133 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.171e-05/0.3697, allocations: 72.3 kB / 0.5193 GB, free: 7.047 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000337/0.37, allocations: 267.8 kB / 0.5195 GB, free: 6.773 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.37, allocations: 0 / 0.5195 GB, free: 6.773 MB / 346.7 MB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002567/0.3703, allocations: 187.2 kB / 0.5197 GB, free: 6.605 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.607e-05/0.3703, allocations: 33.64 kB / 0.5197 GB, free: 6.566 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.3704, allocations: 12.23 kB / 0.5197 GB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.3704, allocations: 3.938 kB / 0.5198 GB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.927e-05/0.3705, allocations: 19.98 kB / 0.5198 GB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.474e-06/0.3705, allocations: 4 kB / 0.5198 GB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.459e-05/0.3706, allocations: 16.09 kB / 0.5198 GB, free: 6.512 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/0.3706, allocations: 7.062 kB / 0.5198 GB, free: 6.508 MB / 346.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.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.T1.firingTime,$whenCondition1,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,T1.active,$PRE.T1.fireTime,$PRE.T1.ani,T1.fireTime,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.000167/0.3707, allocations: 163.1 kB / 0.52 GB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.963e-05/0.3708, allocations: 11.91 kB / 0.52 GB, free: 6.328 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.413e-05/0.3708, allocations: 23.55 kB / 0.52 GB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.3708, allocations: 0 / 0.52 GB, free: 6.316 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.3708, allocations: 4 kB / 0.52 GB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3708, allocations: 0 / 0.52 GB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003565/0.3712, allocations: 384.2 kB / 0.5204 GB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3712, allocations: 4 kB / 0.5204 GB, free: 5.902 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.324e-05/0.3713, allocations: 7.984 kB / 0.5204 GB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.3713, allocations: 0 / 0.5204 GB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3713, allocations: 0 / 0.5204 GB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.3713, allocations: 0 / 0.5204 GB, free: 5.895 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.546e-06/0.3713, allocations: 4 kB / 0.5204 GB, free: 5.891 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002449/0.3715, allocations: 233 kB / 0.5206 GB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.835e-05/0.3716, allocations: 96.72 kB / 0.5207 GB, free: 5.543 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.011e-05/0.3716, allocations: 4 kB / 0.5207 GB, free: 5.539 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.596e-05/0.3717, allocations: 4 kB / 0.5207 GB, free: 5.535 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.3718, allocations: 11.8 kB / 0.5207 GB, free: 5.527 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.366e-06/0.3718, allocations: 11.98 kB / 0.5207 GB, free: 5.516 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.628e-05/0.3719, allocations: 122.5 kB / 0.5208 GB, free: 5.406 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3719, allocations: 0 / 0.5208 GB, free: 5.406 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002427/0.3721, allocations: 19.75 kB / 0.5209 GB, free: 5.391 MB / 346.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.415e-05/0.3722, allocations: 95.25 kB / 0.5209 GB, free: 5.289 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002435/0.3725, allocations: 144.2 kB / 0.5211 GB, free: 5.156 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3725, allocations: 4 kB / 0.5211 GB, free: 5.152 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.3726, allocations: 83.33 kB / 0.5212 GB, free: 5.066 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002544/0.3729, allocations: 19.34 kB / 0.5212 GB, free: 5.055 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004424/0.3733, allocations: 227 kB / 0.5214 GB, free: 4.812 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002891/0.3736, allocations: 0.7119 MB / 0.5221 GB, free: 4.078 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 5.403e-05/0.3737, allocations: 12.88 kB / 0.5221 GB, free: 4.066 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.934e-05/0.3737, allocations: 15.44 kB / 0.5221 GB, free: 4.055 MB / 346.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3737, allocations: 0 / 0.5221 GB, free: 4.055 MB / 346.7 MB Notification: Performance of Templates: time 0.00304/0.3768, allocations: 0.7834 MB / 0.5229 GB, free: 3.281 MB / 346.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