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.001735/0.001734, allocations: 182.4 kB / 15.98 MB, free: 5.766 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.461/1.461, allocations: 205.1 MB / 221.8 MB, free: 8.477 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.001104/0.001104, allocations: 98.28 kB / 269.2 MB, free: 8.426 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06916/0.06916, allocations: 16.87 MB / 333.4 MB, free: 8.105 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001054/0.001054, allocations: 51.92 kB / 394.9 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0818/0.08287, allocations: 50.7 MB / 445.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001877/0.08479, allocations: 1.156 MB / 446.7 MB, free: 9.973 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005138/0.08532, allocations: 296.2 kB / 447 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.013e-05/0.0854, allocations: 8 kB / 447 MB, free: 9.676 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.08553, allocations: 35.78 kB / 447.1 MB, free: 9.641 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/0.0857, allocations: 27.78 kB / 447.1 MB, free: 9.613 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001029/0.08582, allocations: 63.94 kB / 447.1 MB, free: 9.551 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001534/0.08598, allocations: 215.5 kB / 447.4 MB, free: 9.34 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.141e-05/0.08604, allocations: 24.38 kB / 447.4 MB, free: 9.32 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.468e-05/0.08613, allocations: 91.67 kB / 447.5 MB, free: 9.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.174e-05/0.08618, allocations: 59.47 kB / 447.5 MB, free: 9.172 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.08621, allocations: 4 kB / 447.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.701e-05/0.08626, allocations: 7.984 kB / 447.5 MB, free: 9.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.816e-05/0.08632, allocations: 19.92 kB / 447.6 MB, free: 9.141 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.146e-05/0.08637, allocations: 39.73 kB / 447.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.08648, allocations: 79.66 kB / 447.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.08649, allocations: 0 / 447.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of FrontEnd: time 6.92e-07/0.08649, allocations: 0 / 447.7 MB, free: 9.023 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.0865, allocations: 0 / 447.7 MB, free: 9.023 MB / 298.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.0004487/0.08696, allocations: 433 kB / 448.1 MB, free: 8.547 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.08699, allocations: 16.02 kB / 448.1 MB, free: 8.531 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.712e-05/0.08704, allocations: 12.75 kB / 448.1 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001307/0.08717, allocations: 211.7 kB / 448.3 MB, free: 8.273 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.993e-05/0.0872, allocations: 7.984 kB / 448.3 MB, free: 8.266 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.759e-05/0.08722, allocations: 12 kB / 448.4 MB, free: 8.254 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002189/0.08745, allocations: 134.7 kB / 448.5 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.976e-06/0.08746, allocations: 0 / 448.5 MB, free: 8.098 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.157e-05/0.08748, allocations: 4 kB / 448.5 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.08749, allocations: 0 / 448.5 MB, free: 8.094 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000178/0.08767, allocations: 67.89 kB / 448.6 MB, free: 8.027 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005458/0.08823, allocations: 0.902 MB / 449.5 MB, free: 7.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001387/0.08838, allocations: 93.16 kB / 449.6 MB, free: 6.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.3e-05/0.08844, allocations: 29.7 kB / 449.6 MB, free: 6.875 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.524e-06/0.08845, allocations: 0 / 449.6 MB, free: 6.875 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001409/0.0886, allocations: 93.03 kB / 449.7 MB, free: 6.766 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.573e-06/0.08861, allocations: 0 / 449.7 MB, free: 6.766 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002753/0.08889, allocations: 159.2 kB / 449.8 MB, free: 6.598 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.896e-05/0.08895, allocations: 102.8 kB / 449.9 MB, free: 6.473 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001184/0.08908, allocations: 172.3 kB / 450.1 MB, free: 6.297 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.62e-05/0.0891, allocations: 33.7 kB / 450.1 MB, free: 6.258 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.169e-05/0.08917, allocations: 112.1 kB / 450.2 MB, free: 6.141 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.965e-05/0.08919, allocations: 23.7 kB / 450.3 MB, free: 6.117 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.678e-05/0.08924, allocations: 33.72 kB / 450.3 MB, free: 6.078 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.947e-05/0.08932, allocations: 326.8 kB / 450.6 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.632e-05/0.08939, allocations: 31.98 kB / 450.6 MB, free: 5.719 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.919e-05/0.08948, allocations: 76.69 kB / 450.7 MB, free: 5.621 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002957/0.08978, allocations: 277.7 kB / 451 MB, free: 5.301 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.08979, allocations: 0 / 451 MB, free: 5.301 MB / 298.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002335/0.09003, allocations: 195 kB / 451.2 MB, free: 5.098 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.116e-05/0.09007, allocations: 31.89 kB / 451.2 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.09009, allocations: 4.078 kB / 451.2 MB, free: 5.059 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.0901, allocations: 4 kB / 451.2 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.105e-05/0.09019, allocations: 15.92 kB / 451.2 MB, free: 5.039 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.09021, allocations: 7.984 kB / 451.2 MB, free: 5.031 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.105e-05/0.09027, allocations: 23.78 kB / 451.3 MB, free: 5.008 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.09029, allocations: 7.938 kB / 451.3 MB, free: 5 MB / 298.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: 15 ($PRE.T1.firingTime,T1.active,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,$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.0001159/0.09041, allocations: 180.8 kB / 451.4 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.679e-05/0.09044, allocations: 15.81 kB / 451.5 MB, free: 4.793 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.53e-05/0.09047, allocations: 13 kB / 451.5 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.09047, allocations: 0 / 451.5 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.09048, allocations: 0 / 451.5 MB, free: 4.785 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.09049, allocations: 3.984 kB / 451.5 MB, free: 4.781 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003389/0.09083, allocations: 0.4916 MB / 452 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.09085, allocations: 0 / 452 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.692e-05/0.09088, allocations: 4 kB / 452 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.09089, allocations: 0 / 452 MB, free: 4.223 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.488e-06/0.0909, allocations: 4 kB / 452 MB, free: 4.219 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.295e-06/0.09091, allocations: 7.984 kB / 452 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.09091, allocations: 0 / 452 MB, free: 4.211 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000329/0.09124, allocations: 0.8887 MB / 452.9 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.405e-05/0.09128, allocations: 85.02 kB / 453 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.029e-05/0.09131, allocations: 12.05 kB / 453 MB, free: 3.145 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.269e-05/0.0914, allocations: 8 kB / 453 MB, free: 3.137 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.448e-05/0.09145, allocations: 11.98 kB / 453 MB, free: 3.125 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.09147, allocations: 4 kB / 453 MB, free: 3.121 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.461e-05/0.09152, allocations: 123.2 kB / 453.1 MB, free: 3 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.09153, allocations: 4 kB / 453.1 MB, free: 2.996 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000357/0.09189, allocations: 20 kB / 453.1 MB, free: 2.977 MB / 298.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: 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 9.78e-05/0.092, allocations: 99.91 kB / 453.2 MB, free: 2.867 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001906/0.09219, allocations: 143.2 kB / 453.4 MB, free: 2.715 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.09221, allocations: 0 / 453.4 MB, free: 2.715 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.082e-05/0.09229, allocations: 91.7 kB / 453.5 MB, free: 2.613 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002904/0.09259, allocations: 15.94 kB / 453.5 MB, free: 2.598 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004371/0.09304, allocations: 391.9 kB / 453.9 MB, free: 2.172 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.09317, allocations: 0.7082 MB / 454.6 MB, free: 1.438 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.372e-05/0.09324, allocations: 24.56 kB / 454.6 MB, free: 1.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.714e-05/0.09328, allocations: 19.44 kB / 454.6 MB, free: 1.395 MB / 298.7 MB Notification: Performance of SimCode: time 2.41e-07/0.09328, allocations: 0 / 454.6 MB, free: 1.395 MB / 298.7 MB Notification: Performance of Templates: time 0.002625/0.09591, allocations: 0.9613 MB / 455.6 MB, free: 444 kB / 298.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