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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009635/0.0009635, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001009/0.001009, allocations: 177 kB / 23.5 MB, free: 1.055 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.036/1.036, allocations: 177.1 MB / 203.8 MB, free: 5.633 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo): time 0.04837/0.04837, allocations: 12.66 MB / 272.9 MB, free: 0.5547 MB / 250.7 MB " [Timeout remaining time 180] Using package PNlib with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(PNlib.Examples.ConTest.SingleTC,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="T1.fire|T1.instantaneousSpeed|T1.maximumSpeed|time",fileNamePrefix="PNlib_PNlib.Examples.ConTest.SingleTC") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.502e-06/1.502e-06, allocations: 0 / 346.5 MB, free: 2.297 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.603e-05/1.753e-05, allocations: 6.25 kB / 346.5 MB, free: 2.289 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001252/0.00127, allocations: 1.031 MB / 347.5 MB, free: 1.25 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005766/0.001846, allocations: 375.1 kB / 347.9 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001042/0.00195, allocations: 3.938 kB / 347.9 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001747/0.002125, allocations: 47.7 kB / 347.9 MB, free: 0.832 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.002401, allocations: 63.52 kB / 348 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001605/0.002561, allocations: 119.8 kB / 348.1 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002177/0.002779, allocations: 311.3 kB / 348.4 MB, free: 356 kB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.14e-05/0.00283, allocations: 12.59 kB / 348.4 MB, free: 344 kB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001513/0.002982, allocations: 207.7 kB / 348.6 MB, free: 136 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.882e-05/0.003071, allocations: 35.78 kB / 348.6 MB, free: 100 kB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.003088, allocations: 0 / 348.6 MB, free: 100 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001081/0.003196, allocations: 71.8 kB / 348.7 MB, free: 28 kB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.297e-05/0.003269, allocations: 19.86 kB / 348.7 MB, free: 8 kB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.204e-05/0.003321, allocations: 19.86 kB / 348.8 MB, free: 15.99 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000168/0.003489, allocations: 107.7 kB / 348.9 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.003493, allocations: 3.984 kB / 348.9 MB, free: 15.88 MB / 282.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.003493, allocations: 0 / 348.9 MB, free: 15.88 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.003497, allocations: 0 / 348.9 MB, free: 15.88 MB / 282.7 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.0004921/0.003989, allocations: 453.8 kB / 349.3 MB, free: 15.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.004035, allocations: 12.03 kB / 349.3 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.56e-05/0.004111, allocations: 24.78 kB / 349.3 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.00427, allocations: 145.9 kB / 349.5 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.004289, allocations: 4.375 kB / 349.5 MB, free: 15.19 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.0043, allocations: 8.375 kB / 349.5 MB, free: 15.18 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002184/0.004519, allocations: 158.8 kB / 349.7 MB, free: 14.99 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.004526, allocations: 4 kB / 349.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.004537, allocations: 0 / 349.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.366e-06/0.004545, allocations: 3.984 kB / 349.7 MB, free: 14.98 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.463e-05/0.00461, allocations: 69.61 kB / 349.7 MB, free: 14.91 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006349/0.005245, allocations: 0.8351 MB / 350.6 MB, free: 14.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.005398, allocations: 72.81 kB / 350.6 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.52e-05/0.005433, allocations: 49.5 kB / 350.7 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.449e-05/0.005448, allocations: 0 / 350.7 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.163e-05/0.005469, allocations: 37.33 kB / 350.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.002e-06/0.00547, allocations: 0 / 350.7 MB, free: 13.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001975/0.005668, allocations: 162.9 kB / 350.9 MB, free: 13.64 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.765e-05/0.005705, allocations: 85.09 kB / 351 MB, free: 13.54 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001274/0.005833, allocations: 225.1 kB / 351.2 MB, free: 13.3 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.306e-05/0.005846, allocations: 29.7 kB / 351.2 MB, free: 13.27 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.194e-05/0.005918, allocations: 162.7 kB / 351.4 MB, free: 13.1 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.005932, allocations: 19.78 kB / 351.4 MB, free: 13.08 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.097e-05/0.005973, allocations: 39.36 kB / 351.4 MB, free: 13.04 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.006092, allocations: 0.4923 MB / 351.9 MB, free: 12.53 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.535e-05/0.006128, allocations: 41.81 kB / 352 MB, free: 12.48 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.783e-05/0.006185, allocations: 100 kB / 352.1 MB, free: 12.36 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.006438, allocations: 133.8 kB / 352.2 MB, free: 12.2 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.165e-06/0.006441, allocations: 0 / 352.2 MB, free: 12.2 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001512/0.006592, allocations: 168.9 kB / 352.4 MB, free: 12.01 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.152e-05/0.006624, allocations: 33.7 kB / 352.4 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.541e-06/0.006629, allocations: 0 / 352.4 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.87e-05/0.006648, allocations: 4 kB / 352.4 MB, free: 11.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.616e-05/0.006694, allocations: 11.98 kB / 352.4 MB, free: 11.96 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.826e-06/0.006703, allocations: 8.062 kB / 352.4 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.602e-05/0.006729, allocations: 16.02 kB / 352.4 MB, free: 11.93 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.229e-05/0.006751, allocations: 8 kB / 352.4 MB, free: 11.93 MB / 282.7 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 0.0001045/0.006856, allocations: 194.2 kB / 352.6 MB, free: 11.72 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.093e-05/0.006877, allocations: 15.91 kB / 352.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.00703, allocations: 138.2 kB / 352.8 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.007032, allocations: 0 / 352.8 MB, free: 11.55 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.007037, allocations: 3.984 kB / 352.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.668e-06/0.007041, allocations: 7.938 kB / 352.8 MB, free: 11.54 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.496e-05/0.007136, allocations: 140.6 kB / 352.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.007138, allocations: 0 / 352.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.161e-05/0.007149, allocations: 8 kB / 352.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.007152, allocations: 4 kB / 352.9 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.00716, allocations: 0 / 352.9 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.91e-07/0.007161, allocations: 0 / 352.9 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.007162, allocations: 0 / 352.9 MB, free: 11.35 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001066/0.007269, allocations: 175.7 kB / 353.1 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.015e-06/0.007277, allocations: 7.906 kB / 353.1 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.467e-05/0.007291, allocations: 4 kB / 353.1 MB, free: 11.13 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.157e-05/0.007303, allocations: 4 kB / 353.1 MB, free: 11.13 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.894e-05/0.007332, allocations: 4 kB / 353.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.007334, allocations: 0 / 353.1 MB, free: 11.12 MB / 282.7 MB Notification: Performance of sorting global known variables: time 6.31e-05/0.007397, allocations: 167.9 kB / 353.3 MB, free: 10.96 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007398, allocations: 0 / 353.3 MB, free: 10.96 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001489/0.007546, allocations: 35.81 kB / 353.3 MB, free: 10.93 MB / 282.7 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.0001172/0.007664, allocations: 118.4 kB / 353.4 MB, free: 10.8 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.007815, allocations: 162.4 kB / 353.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.007818, allocations: 4 kB / 353.6 MB, free: 10.61 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.376e-05/0.007861, allocations: 108.8 kB / 353.7 MB, free: 10.48 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.008001, allocations: 18.92 kB / 353.7 MB, free: 10.47 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003761/0.008377, allocations: 272 kB / 354 MB, free: 10.17 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.416e-05/0.008412, allocations: 63.2 kB / 354.1 MB, free: 10.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.189e-05/0.008483, allocations: 44.38 kB / 354.1 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.968e-05/0.008513, allocations: 20.48 kB / 354.1 MB, free: 10.02 MB / 282.7 MB Notification: Performance of SimCode: time 7.32e-07/0.008514, allocations: 4 kB / 354.1 MB, free: 10.02 MB / 282.7 MB Notification: Performance of Templates: time 0.00256/0.01107, allocations: 0.8846 MB / 355 MB, free: 9.148 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f PNlib_PNlib.Examples.ConTest.SingleTC.makefile [Timeout 660] (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=240 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) [Timeout 240] diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.ConTest.SingleTC.mat","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.894198589026928]