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.001429/0.001429, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001695/0.001696, allocations: 195.4 kB / 16.14 MB, free: 6.703 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.411/1.411, allocations: 222.9 MB / 239.8 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.184/0.184, allocations: 16.76 MB / 306.7 MB, free: 15.05 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001382/0.001382, allocations: 59.91 kB / 371 MB, free: 3.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2878/0.2892, allocations: 53.46 MB / 424.4 MB, free: 39.36 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001938/0.2912, allocations: 1.152 MB / 425.6 MB, free: 38.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000645/0.2918, allocations: 430.4 kB / 426 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.422e-05/0.2919, allocations: 2.562 kB / 426 MB, free: 38.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001438/0.2921, allocations: 38.97 kB / 426 MB, free: 38.82 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001886/0.2923, allocations: 34.22 kB / 426.1 MB, free: 38.81 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001527/0.2924, allocations: 108.5 kB / 426.2 MB, free: 38.8 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001796/0.2926, allocations: 271.5 kB / 426.4 MB, free: 38.78 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.481e-05/0.2927, allocations: 23.61 kB / 426.5 MB, free: 38.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.595e-05/0.2928, allocations: 116.9 kB / 426.6 MB, free: 38.75 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.146e-05/0.2929, allocations: 55.98 kB / 426.6 MB, free: 38.72 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.436e-05/0.2929, allocations: 2.5 kB / 426.6 MB, free: 38.72 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.293, allocations: 60.62 kB / 426.7 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.461e-05/0.2931, allocations: 17.62 kB / 426.7 MB, free: 38.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.232e-05/0.2931, allocations: 34.98 kB / 426.7 MB, free: 38.7 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001424/0.2933, allocations: 113.4 kB / 426.9 MB, free: 38.66 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.2933, allocations: 2.781 kB / 426.9 MB, free: 38.66 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2933, allocations: 0 / 426.9 MB, free: 38.66 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.226e-06/0.2933, allocations: 0 / 426.9 MB, free: 38.66 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.0003682/0.2937, allocations: 431.3 kB / 427.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.817e-05/0.2937, allocations: 11.75 kB / 427.3 MB, free: 38.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.23e-05/0.2937, allocations: 14.75 kB / 427.3 MB, free: 38.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.2939, allocations: 198.4 kB / 427.5 MB, free: 38.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.2939, allocations: 3.281 kB / 427.5 MB, free: 38.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.547e-05/0.2939, allocations: 10.66 kB / 427.5 MB, free: 38.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001528/0.2941, allocations: 110 kB / 427.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-06/0.2941, allocations: 0 / 427.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.269e-05/0.2941, allocations: 3.812 kB / 427.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2941, allocations: 2.969 kB / 427.6 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.258e-05/0.2942, allocations: 50.55 kB / 427.7 MB, free: 37.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004921/0.2947, allocations: 0.7287 MB / 428.4 MB, free: 37.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001359/0.2949, allocations: 51.02 kB / 428.5 MB, free: 37.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.98e-05/0.2949, allocations: 21.8 kB / 428.5 MB, free: 37.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.348e-05/0.2949, allocations: 6.047 kB / 428.5 MB, free: 37.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.215e-05/0.2949, allocations: 33.47 kB / 428.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.2949, allocations: 4 kB / 428.5 MB, free: 37.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.000206/0.2952, allocations: 125.7 kB / 428.6 MB, free: 37.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.658e-05/0.2952, allocations: 77.22 kB / 428.7 MB, free: 36.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.978e-05/0.2953, allocations: 171.5 kB / 428.9 MB, free: 36.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.716e-06/0.2953, allocations: 29.52 kB / 428.9 MB, free: 36.86 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.241e-05/0.2954, allocations: 112 kB / 429 MB, free: 36.76 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.27e-05/0.2954, allocations: 21.58 kB / 429 MB, free: 36.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.973e-05/0.2954, allocations: 32.48 kB / 429.1 MB, free: 36.73 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.365e-05/0.2955, allocations: 324.5 kB / 429.4 MB, free: 36.42 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.944e-05/0.2955, allocations: 21.36 kB / 429.4 MB, free: 36.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.342e-05/0.2956, allocations: 55.97 kB / 429.5 MB, free: 36.38 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.014e-05/0.2957, allocations: 127.3 kB / 429.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2957, allocations: 0 / 429.6 MB, free: 36.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001602/0.2958, allocations: 141.7 kB / 429.7 MB, free: 36.19 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.2959, allocations: 34.94 kB / 429.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.2959, allocations: 3.062 kB / 429.8 MB, free: 36.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.176e-05/0.2959, allocations: 3.938 kB / 429.8 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.115e-05/0.2959, allocations: 15.16 kB / 429.8 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.296, allocations: 6.938 kB / 429.8 MB, free: 36.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.856e-05/0.296, allocations: 8.969 kB / 429.8 MB, free: 36.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.296, allocations: 3.656 kB / 429.8 MB, free: 36.14 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.251e-05/0.2961, allocations: 161 kB / 430 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.2961, allocations: 9.719 kB / 430 MB, free: 35.99 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001661/0.2963, allocations: 120.8 kB / 430.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.804e-06/0.2963, allocations: 0 / 430.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.2963, allocations: 0 / 430.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2963, allocations: 2.781 kB / 430.1 MB, free: 35.91 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.73e-05/0.2965, allocations: 196.7 kB / 430.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.2965, allocations: 0.8125 kB / 430.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.847e-05/0.2965, allocations: 2.719 kB / 430.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.2965, allocations: 0 / 430.3 MB, free: 35.72 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.465e-06/0.2965, allocations: 3.938 kB / 430.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2965, allocations: 7.438 kB / 430.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.2965, allocations: 3.938 kB / 430.3 MB, free: 35.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001252/0.2966, allocations: 136 kB / 430.4 MB, free: 35.6 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.385e-05/0.2967, allocations: 91.7 kB / 430.5 MB, free: 35.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.128e-05/0.2967, allocations: 10.75 kB / 430.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.984e-05/0.2967, allocations: 2.844 kB / 430.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.9e-05/0.2968, allocations: 6.578 kB / 430.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.939e-06/0.2968, allocations: 2.938 kB / 430.5 MB, free: 35.49 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.999e-05/0.2968, allocations: 128.2 kB / 430.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2969, allocations: 0 / 430.7 MB, free: 35.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002196/0.2971, allocations: 19.44 kB / 430.7 MB, free: 35.41 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.0001274/0.2972, allocations: 119.6 kB / 430.8 MB, free: 35.31 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001614/0.2974, allocations: 106.5 kB / 430.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.2974, allocations: 0 / 430.9 MB, free: 35.25 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.462e-05/0.2974, allocations: 78.66 kB / 431 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002283/0.2977, allocations: 10.36 kB / 431 MB, free: 35.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004732/0.2982, allocations: 252 kB / 431.2 MB, free: 35.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001284/0.2983, allocations: 0.7 MB / 431.9 MB, free: 34.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.916e-05/0.2984, allocations: 43.58 kB / 432 MB, free: 34.31 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.523e-05/0.2984, allocations: 20.05 kB / 432 MB, free: 34.3 MB / 350.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2985, allocations: 4 kB / 432 MB, free: 34.3 MB / 350.1 MB Notification: Performance of Templates: time 0.003141/0.3016, allocations: 0.8484 MB / 432.9 MB, free: 34.21 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