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 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.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.009319/0.009319, allocations: 101.1 kB / 15.88 MB, free: 6.332 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.002247/0.002247, allocations: 195.9 kB / 16.79 MB, free: 6.258 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.318/1.318, allocations: 222.9 MB / 240.5 MB, free: 4.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1938/0.1938, allocations: 16.76 MB / 307.4 MB, free: 15.07 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001187/0.001187, allocations: 68.09 kB / 371.6 MB, free: 3.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.2808, allocations: 53.46 MB / 425.1 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.00204/0.2829, allocations: 1.146 MB / 426.2 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007736/0.2837, allocations: 430.4 kB / 426.6 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001106/0.2838, allocations: 3.938 kB / 426.6 MB, free: 38.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001485/0.284, allocations: 35.12 kB / 426.7 MB, free: 38.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001977/0.2842, allocations: 35.2 kB / 426.7 MB, free: 38.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001746/0.2844, allocations: 105.9 kB / 426.8 MB, free: 38.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001887/0.2846, allocations: 274.5 kB / 427.1 MB, free: 38.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.046e-05/0.2846, allocations: 23.81 kB / 427.1 MB, free: 38.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.763e-05/0.2847, allocations: 124.9 kB / 427.2 MB, free: 38.6 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.689e-05/0.2848, allocations: 53.73 kB / 427.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.2848, allocations: 2.938 kB / 427.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001088/0.285, allocations: 57.48 kB / 427.3 MB, free: 38.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.392e-05/0.285, allocations: 15.89 kB / 427.4 MB, free: 38.56 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.21e-05/0.2851, allocations: 36 kB / 427.4 MB, free: 38.55 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001138/0.2852, allocations: 81.91 kB / 427.5 MB, free: 38.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2852, allocations: 3.938 kB / 427.5 MB, free: 38.53 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.2852, allocations: 0.7812 kB / 427.5 MB, free: 38.53 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.068e-06/0.2852, allocations: 0 / 427.5 MB, free: 38.53 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.000395/0.2856, allocations: 431.7 kB / 427.9 MB, free: 38.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.2857, allocations: 9.031 kB / 427.9 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.71e-05/0.2857, allocations: 15.69 kB / 427.9 MB, free: 38.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.2859, allocations: 196.5 kB / 428.1 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.2859, allocations: 3.188 kB / 428.1 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/0.2859, allocations: 17.53 kB / 428.1 MB, free: 37.89 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001641/0.2861, allocations: 105.3 kB / 428.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.2861, allocations: 0 / 428.2 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.382e-05/0.2861, allocations: 10.41 kB / 428.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.414e-06/0.2861, allocations: 0 / 428.3 MB, free: 37.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.094e-05/0.2862, allocations: 50.48 kB / 428.3 MB, free: 37.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005163/0.2868, allocations: 0.7284 MB / 429 MB, free: 37.11 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001466/0.2869, allocations: 52.45 kB / 429.1 MB, free: 37.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.067e-05/0.287, allocations: 21.73 kB / 429.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.459e-05/0.287, allocations: 2.875 kB / 429.1 MB, free: 37.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.378e-05/0.287, allocations: 30.56 kB / 429.1 MB, free: 37.04 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.192e-06/0.287, allocations: 0 / 429.1 MB, free: 37.04 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002101/0.2872, allocations: 125.5 kB / 429.3 MB, free: 36.96 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.497e-05/0.2872, allocations: 77.11 kB / 429.3 MB, free: 36.86 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.2874, allocations: 170.8 kB / 429.5 MB, free: 36.76 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.255e-06/0.2874, allocations: 25.7 kB / 429.5 MB, free: 36.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.618e-05/0.2874, allocations: 119.6 kB / 429.6 MB, free: 36.63 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.346e-05/0.2875, allocations: 23.39 kB / 429.7 MB, free: 36.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.2875, allocations: 31.23 kB / 429.7 MB, free: 36.6 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.947e-05/0.2876, allocations: 323 kB / 430 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.122e-05/0.2876, allocations: 19.73 kB / 430 MB, free: 36.29 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.045e-05/0.2877, allocations: 53.3 kB / 430.1 MB, free: 36.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001095/0.2878, allocations: 129.6 kB / 430.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.544e-06/0.2878, allocations: 0 / 430.2 MB, free: 36.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001721/0.288, allocations: 144.8 kB / 430.3 MB, free: 36.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.288, allocations: 30.98 kB / 430.4 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.288, allocations: 6.594 kB / 430.4 MB, free: 36.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.288, allocations: 6.312 kB / 430.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.107e-05/0.2881, allocations: 14.94 kB / 430.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.291e-06/0.2881, allocations: 3.594 kB / 430.4 MB, free: 36.02 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.712e-05/0.2881, allocations: 14.91 kB / 430.4 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.2882, allocations: 6.062 kB / 430.4 MB, free: 36.01 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 8.26e-05/0.2882, allocations: 156.8 kB / 430.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.038e-05/0.2883, allocations: 8.969 kB / 430.6 MB, free: 35.86 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001565/0.2884, allocations: 126.4 kB / 430.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.2884, allocations: 2.594 kB / 430.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.2885, allocations: 0 / 430.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2885, allocations: 3.938 kB / 430.7 MB, free: 35.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.747e-05/0.2886, allocations: 193.6 kB / 430.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2886, allocations: 48 / 430.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.873e-05/0.2886, allocations: 6.766 kB / 430.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2886, allocations: 0 / 430.9 MB, free: 35.58 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.2886, allocations: 6.625 kB / 430.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.2886, allocations: 0 / 430.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.2886, allocations: 80 / 430.9 MB, free: 35.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001086/0.2887, allocations: 127.5 kB / 431 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.2888, allocations: 94.28 kB / 431.1 MB, free: 35.37 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.124e-05/0.2888, allocations: 10.56 kB / 431.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.867e-05/0.2888, allocations: 0 / 431.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.662e-05/0.2888, allocations: 6.188 kB / 431.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.2889, allocations: 0 / 431.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.462e-05/0.2889, allocations: 127.2 kB / 431.3 MB, free: 35.29 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.81e-07/0.2889, allocations: 4 kB / 431.3 MB, free: 35.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002119/0.2891, allocations: 29 kB / 431.3 MB, free: 35.28 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.0001131/0.2893, allocations: 116.4 kB / 431.4 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001632/0.2894, allocations: 109.1 kB / 431.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2895, allocations: 0 / 431.5 MB, free: 35.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.744e-05/0.2895, allocations: 69.88 kB / 431.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000245/0.2897, allocations: 11.28 kB / 431.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004318/0.2902, allocations: 288.3 kB / 431.9 MB, free: 34.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.2903, allocations: 0.7096 MB / 432.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.369e-05/0.2904, allocations: 25.28 kB / 432.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2904, allocations: 0 / 432.6 MB, free: 34.14 MB / 350.1 MB Notification: Performance of Templates: time 0.002549/0.2929, allocations: 1.356 MB / 434 MB, free: 34.01 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