Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.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 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 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.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007782/0.0007784, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005317/0.005318, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.271/1.271, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1925/0.1925, allocations: 16.71 MB / 308.1 MB, free: 15.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003426/0.0003426, allocations: 8 kB / 373.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2644/0.2648, allocations: 54.47 MB / 427.9 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001107/0.2659, allocations: 0.8062 MB / 428.7 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008279/0.2668, allocations: 423 kB / 429.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.237e-05/0.2669, allocations: 5.5 kB / 429.1 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.267, allocations: 42.53 kB / 429.1 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001936/0.2672, allocations: 29.08 kB / 429.2 MB, free: 37.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001654/0.2674, allocations: 114.3 kB / 429.3 MB, free: 37.72 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001904/0.2676, allocations: 272 kB / 429.5 MB, free: 37.7 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.496e-05/0.2677, allocations: 23.12 kB / 429.6 MB, free: 37.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.892e-05/0.2678, allocations: 115.2 kB / 429.7 MB, free: 37.67 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.355e-05/0.2678, allocations: 46.09 kB / 429.7 MB, free: 37.65 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.2679, allocations: 6.625 kB / 429.7 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001033/0.268, allocations: 57.52 kB / 429.8 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.089e-05/0.268, allocations: 22.28 kB / 429.8 MB, free: 37.64 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.737e-05/0.2681, allocations: 62.47 kB / 429.9 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.2682, allocations: 109.7 kB / 430 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.2682, allocations: 0.9375 kB / 430 MB, free: 37.57 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.2682, allocations: 0 / 430 MB, free: 37.57 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.606e-06/0.2683, allocations: 1.531 kB / 430 MB, free: 37.57 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003132/0.2686, allocations: 416.5 kB / 430.4 MB, free: 37.15 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.2686, allocations: 7.594 kB / 430.4 MB, free: 37.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.744e-05/0.2687, allocations: 12.19 kB / 430.4 MB, free: 37.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.2688, allocations: 198.4 kB / 430.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.867e-05/0.2688, allocations: 8.875 kB / 430.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.505e-05/0.2688, allocations: 9.125 kB / 430.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001583/0.269, allocations: 111.2 kB / 430.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.269, allocations: 0 / 430.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.269, allocations: 3.094 kB / 430.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.269, allocations: 0 / 430.7 MB, free: 36.86 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.524e-05/0.2691, allocations: 53.58 kB / 430.8 MB, free: 36.85 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005226/0.2697, allocations: 0.7311 MB / 431.5 MB, free: 36.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.2698, allocations: 57.56 kB / 431.6 MB, free: 36.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.341e-05/0.2699, allocations: 20.66 kB / 431.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.479e-05/0.2699, allocations: 0 / 431.6 MB, free: 36.11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.408e-05/0.2699, allocations: 34.38 kB / 431.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.051e-06/0.2699, allocations: 0 / 431.6 MB, free: 36.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002226/0.2701, allocations: 121 kB / 431.7 MB, free: 36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.712e-05/0.2702, allocations: 85.05 kB / 431.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001057/0.2703, allocations: 170.1 kB / 432 MB, free: 35.8 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.957e-06/0.2703, allocations: 33.08 kB / 432 MB, free: 35.76 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.614e-05/0.2703, allocations: 112.1 kB / 432.1 MB, free: 35.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.148e-05/0.2704, allocations: 17.81 kB / 432.1 MB, free: 35.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.475e-05/0.2704, allocations: 22.75 kB / 432.2 MB, free: 35.64 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.092e-05/0.2705, allocations: 324.2 kB / 432.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.744e-05/0.2705, allocations: 18.83 kB / 432.5 MB, free: 35.33 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.433e-05/0.2705, allocations: 60.95 kB / 432.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.495e-05/0.2706, allocations: 127.7 kB / 432.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2706, allocations: 0 / 432.7 MB, free: 35.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001729/0.2708, allocations: 147.7 kB / 432.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.2709, allocations: 36.59 kB / 432.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.2709, allocations: 2.938 kB / 432.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.196e-05/0.2709, allocations: 3.938 kB / 432.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.778e-05/0.2709, allocations: 15.03 kB / 432.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.2709, allocations: 5.969 kB / 432.9 MB, free: 35.06 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.825e-05/0.271, allocations: 6.906 kB / 432.9 MB, free: 35.05 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.39e-05/0.271, allocations: 5.781 kB / 432.9 MB, free: 35.05 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 5 (T1.firingCon,T1.fire_,T1.activation.NoTokens,T1.activation.active,T1.fire) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 10 * 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 7.317e-05/0.2711, allocations: 159.1 kB / 433.1 MB, free: 34.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.2711, allocations: 13.06 kB / 433.1 MB, free: 34.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001527/0.2713, allocations: 121 kB / 433.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.2713, allocations: 0 / 433.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2713, allocations: 256 / 433.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.2713, allocations: 0 / 433.2 MB, free: 34.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.437e-05/0.2714, allocations: 194.2 kB / 433.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.2714, allocations: 3.938 kB / 433.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.739e-05/0.2714, allocations: 6 kB / 433.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2714, allocations: 2.875 kB / 433.4 MB, free: 34.62 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.384e-06/0.2715, allocations: 7.938 kB / 433.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.2715, allocations: 0 / 433.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.2715, allocations: 0 / 433.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001139/0.2716, allocations: 126.3 kB / 433.5 MB, free: 34.52 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.533e-05/0.2716, allocations: 94.19 kB / 433.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.828e-05/0.2716, allocations: 3.938 kB / 433.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.026e-05/0.2717, allocations: 2.969 kB / 433.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.034e-05/0.2717, allocations: 3.438 kB / 433.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-06/0.2717, allocations: 10.34 kB / 433.6 MB, free: 34.41 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.135e-05/0.2718, allocations: 125.8 kB / 433.8 MB, free: 34.33 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.31e-07/0.2718, allocations: 0 / 433.8 MB, free: 34.33 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002161/0.272, allocations: 31.56 kB / 433.8 MB, free: 34.32 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (T1.fire,T1.activation.active,T1.activation.NoTokens) * Number of discrete states: 2 (T1.activation.active,T1.activation.NoTokens) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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 Backend phase and start with SimCode phase: time 0.0001095/0.2721, allocations: 122.7 kB / 433.9 MB, free: 34.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001374/0.2723, allocations: 108.6 kB / 434 MB, free: 34.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2723, allocations: 0 / 434 MB, free: 34.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.834e-05/0.2723, allocations: 77.08 kB / 434.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000175/0.2725, allocations: 11.17 kB / 434.1 MB, free: 34.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003736/0.2729, allocations: 243.7 kB / 434.3 MB, free: 33.93 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001057/0.273, allocations: 0.7095 MB / 435.1 MB, free: 33.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.619e-05/0.2731, allocations: 45.67 kB / 435.1 MB, free: 33.22 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.172e-05/0.2731, allocations: 24.03 kB / 435.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of SimCode: time 3.51e-07/0.2731, allocations: 0 / 435.1 MB, free: 33.21 MB / 350.1 MB Notification: Performance of Templates: time 0.00278/0.2759, allocations: 0.9268 MB / 436.1 MB, free: 33.12 MB / 350.1 MB make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile (rm -f PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; mkfifo PNlib_PNlib.Examples.ConTest.SingleTC.pipe ; head -c 1048576 < PNlib_PNlib.Examples.ConTest.SingleTC.pipe >> ../files/PNlib_PNlib.Examples.ConTest.SingleTC.sim & ./PNlib_PNlib.Examples.ConTest.SingleTC -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","../files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches