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.0007333/0.0007332, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.0007412/0.0007412, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.158/1.158, allocations: 223.3 MB / 240 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1657/0.1657, allocations: 16.73 MB / 307.8 MB, free: 15.73 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002614/0.0002615, allocations: 8 kB / 372.8 MB, free: 3.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2262, allocations: 54.47 MB / 427.3 MB, free: 37.63 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.0008008/0.227, allocations: 0.7727 MB / 428 MB, free: 37.56 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005266/0.2276, allocations: 375.2 kB / 428.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.058e-05/0.2276, allocations: 0 / 428.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.2278, allocations: 46.47 kB / 428.5 MB, free: 37.49 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001721/0.2279, allocations: 34.84 kB / 428.5 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001361/0.2281, allocations: 85.61 kB / 428.6 MB, free: 37.47 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001944/0.2283, allocations: 256.6 kB / 428.8 MB, free: 37.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.994e-05/0.2284, allocations: 21.69 kB / 428.8 MB, free: 37.44 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.674e-05/0.2284, allocations: 119.1 kB / 429 MB, free: 37.43 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.301e-05/0.2285, allocations: 47.23 kB / 429 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.247e-05/0.2285, allocations: 2.812 kB / 429 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.091e-05/0.2286, allocations: 53.05 kB / 429.1 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.647e-05/0.2287, allocations: 19.11 kB / 429.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.2287, allocations: 42.48 kB / 429.1 MB, free: 37.36 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 9.433e-05/0.2288, allocations: 81.88 kB / 429.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2288, allocations: 0 / 429.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2288, allocations: 0 / 429.2 MB, free: 37.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.946e-06/0.2288, allocations: 0 / 429.2 MB, free: 37.35 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.0002766/0.2291, allocations: 410.4 kB / 429.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.735e-05/0.2291, allocations: 11.41 kB / 429.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.73e-05/0.2292, allocations: 12.84 kB / 429.6 MB, free: 36.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001112/0.2293, allocations: 204.1 kB / 429.8 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.2293, allocations: 6.562 kB / 429.8 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.2294, allocations: 6.625 kB / 429.8 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.2295, allocations: 109.1 kB / 429.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.362e-06/0.2295, allocations: 0.9688 kB / 429.9 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.2295, allocations: 10.05 kB / 430 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.2295, allocations: 0 / 430 MB, free: 36.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.826e-05/0.2296, allocations: 54.8 kB / 430 MB, free: 36.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004608/0.2301, allocations: 0.7423 MB / 430.8 MB, free: 35.93 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001202/0.2302, allocations: 51.31 kB / 430.8 MB, free: 35.91 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.823e-05/0.2303, allocations: 20.14 kB / 430.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.291e-05/0.2303, allocations: 2.062 kB / 430.8 MB, free: 35.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.149e-05/0.2303, allocations: 30.56 kB / 430.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.102e-06/0.2303, allocations: 2.906 kB / 430.9 MB, free: 35.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0001913/0.2305, allocations: 119.6 kB / 431 MB, free: 35.79 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.363e-05/0.2305, allocations: 87.3 kB / 431.1 MB, free: 35.69 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.674e-05/0.2306, allocations: 164.9 kB / 431.2 MB, free: 35.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.504e-06/0.2306, allocations: 25.7 kB / 431.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.101e-05/0.2307, allocations: 114.3 kB / 431.4 MB, free: 35.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.142e-05/0.2307, allocations: 21.22 kB / 431.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.521e-06/0.2307, allocations: 2.969 kB / 431.4 MB, free: 35.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.516e-05/0.2308, allocations: 327.6 kB / 431.7 MB, free: 35.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.399e-05/0.2308, allocations: 15.7 kB / 431.7 MB, free: 35.13 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.019e-05/0.2308, allocations: 58.66 kB / 431.8 MB, free: 35.09 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.003e-05/0.2309, allocations: 56.62 kB / 431.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2309, allocations: 0 / 431.8 MB, free: 35.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001643/0.2311, allocations: 140.5 kB / 432 MB, free: 34.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.2311, allocations: 34.83 kB / 432 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.2311, allocations: 3.938 kB / 432 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.034e-05/0.2311, allocations: 7.219 kB / 432 MB, free: 34.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.182e-05/0.2312, allocations: 18.61 kB / 432 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.2312, allocations: 2.562 kB / 432 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.833e-05/0.2312, allocations: 9.875 kB / 432 MB, free: 34.94 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.25e-05/0.2313, allocations: 5.906 kB / 432 MB, free: 34.94 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.active,T1.activation.NoTokens,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.311e-05/0.2313, allocations: 157.1 kB / 432.2 MB, free: 34.79 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.691e-05/0.2314, allocations: 12.97 kB / 432.2 MB, free: 34.78 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001701/0.2315, allocations: 153.9 kB / 432.4 MB, free: 34.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.914e-06/0.2316, allocations: 6.406 kB / 432.4 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.2316, allocations: 0 / 432.4 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.2316, allocations: 0 / 432.4 MB, free: 34.69 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.666e-05/0.2317, allocations: 201.5 kB / 432.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.2317, allocations: 0 / 432.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.628e-05/0.2317, allocations: 3.125 kB / 432.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.2317, allocations: 0 / 432.6 MB, free: 34.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.462e-06/0.2317, allocations: 4.188 kB / 432.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.2317, allocations: 7.188 kB / 432.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.62e-07/0.2317, allocations: 0 / 432.6 MB, free: 34.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000106/0.2318, allocations: 132.9 kB / 432.7 MB, free: 34.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.243e-05/0.2318, allocations: 89.64 kB / 432.8 MB, free: 34.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.2319, allocations: 4 kB / 432.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.192e-05/0.2319, allocations: 2.375 kB / 432.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.297e-05/0.2319, allocations: 9.734 kB / 432.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.616e-06/0.2319, allocations: 0 / 432.8 MB, free: 34.28 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.175e-05/0.232, allocations: 134.1 kB / 432.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.232, allocations: 0 / 432.9 MB, free: 34.2 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.2322, allocations: 30.94 kB / 433 MB, free: 34.19 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 (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 0.0001008/0.2323, allocations: 111.2 kB / 433.1 MB, free: 34.1 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001275/0.2325, allocations: 119.6 kB / 433.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.2325, allocations: 0 / 433.2 MB, free: 34.03 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.331e-05/0.2325, allocations: 66.25 kB / 433.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001564/0.2327, allocations: 16.78 kB / 433.3 MB, free: 33.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000319/0.233, allocations: 258.6 kB / 433.5 MB, free: 33.8 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.817e-05/0.2331, allocations: 0.7003 MB / 434.2 MB, free: 33.1 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.587e-05/0.2332, allocations: 54.34 kB / 434.3 MB, free: 33.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.116e-05/0.2332, allocations: 23.11 kB / 434.3 MB, free: 33.09 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2332, allocations: 2.875 kB / 434.3 MB, free: 33.09 MB / 350.1 MB Notification: Performance of Templates: time 0.002437/0.2357, allocations: 0.9812 MB / 435.3 MB, free: 33 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