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.0008726/0.0008726, allocations: 73.97 kB / 20.65 MB, free: 3.844 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.00101/0.00101, allocations: 169 kB / 24.06 MB, free: 452 kB / 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/1, allocations: 177.1 MB / 204.5 MB, free: 5.48 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.07716/0.07716, allocations: 12.66 MB / 273.7 MB, free: 328 kB / 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.783e-06/1.783e-06, allocations: 0 / 347.7 MB, free: 1.656 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.607e-05/2.785e-05, allocations: 4.844 kB / 347.7 MB, free: 1.652 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001432/0.001459, allocations: 1.008 MB / 348.7 MB, free: 0.6367 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005709/0.00203, allocations: 379 kB / 349.1 MB, free: 272 kB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.201e-05/0.002122, allocations: 0 / 349.1 MB, free: 272 kB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001499/0.002272, allocations: 55.64 kB / 349.1 MB, free: 216 kB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.002515, allocations: 51.59 kB / 349.2 MB, free: 164 kB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002105/0.002726, allocations: 127.8 kB / 349.3 MB, free: 36 kB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002921/0.003018, allocations: 299.5 kB / 349.6 MB, free: 15.74 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.95e-05/0.003067, allocations: 12.59 kB / 349.6 MB, free: 15.73 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/0.003236, allocations: 211.5 kB / 349.8 MB, free: 15.52 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.726e-05/0.003314, allocations: 39.77 kB / 349.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 1.567e-05/0.003329, allocations: 4 kB / 349.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001102/0.003439, allocations: 67.86 kB / 349.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.548e-05/0.003495, allocations: 23.86 kB / 349.9 MB, free: 15.39 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.643e-05/0.003521, allocations: 19.92 kB / 350 MB, free: 15.37 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001583/0.00368, allocations: 111.6 kB / 350.1 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.703e-06/0.003681, allocations: 0 / 350.1 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd: time 7.11e-07/0.003682, allocations: 0 / 350.1 MB, free: 15.26 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.516e-06/0.003686, allocations: 0 / 350.1 MB, free: 15.26 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.0003525/0.004038, allocations: 453.8 kB / 350.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.734e-05/0.004075, allocations: 8.031 kB / 350.5 MB, free: 14.77 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.762e-05/0.004123, allocations: 24.84 kB / 350.5 MB, free: 14.74 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001264/0.004249, allocations: 148.9 kB / 350.7 MB, free: 14.57 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.557e-05/0.004265, allocations: 12.3 kB / 350.7 MB, free: 14.56 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.457e-06/0.004274, allocations: 8.375 kB / 350.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001455/0.00442, allocations: 150.8 kB / 350.8 MB, free: 14.37 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.004429, allocations: 7.938 kB / 350.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.223e-06/0.004436, allocations: 0 / 350.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.004442, allocations: 0 / 350.9 MB, free: 14.36 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.391e-05/0.004496, allocations: 61.61 kB / 350.9 MB, free: 14.29 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004887/0.004985, allocations: 0.8084 MB / 351.7 MB, free: 13.44 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001117/0.005097, allocations: 76.81 kB / 351.8 MB, free: 13.34 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.326e-05/0.00512, allocations: 37.39 kB / 351.8 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.155e-05/0.005131, allocations: 7.984 kB / 351.8 MB, free: 13.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.126e-05/0.005153, allocations: 37.52 kB / 351.9 MB, free: 13.24 MB / 282.7 MB Notification: Performance of pre-optimization done (n=6): time 1.122e-06/0.005154, allocations: 0 / 351.9 MB, free: 13.24 MB / 282.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002269/0.005381, allocations: 162.8 kB / 352 MB, free: 13.06 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.054e-05/0.005411, allocations: 77.11 kB / 352.1 MB, free: 12.96 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.005515, allocations: 227.1 kB / 352.3 MB, free: 12.73 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.047e-06/0.005524, allocations: 25.7 kB / 352.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.308e-05/0.005587, allocations: 158.7 kB / 352.5 MB, free: 12.54 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.196e-05/0.005599, allocations: 27.8 kB / 352.5 MB, free: 12.51 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.87e-05/0.005638, allocations: 39.34 kB / 352.6 MB, free: 12.46 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.005744, allocations: 0.4961 MB / 353.1 MB, free: 11.95 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.632e-05/0.00577, allocations: 37.75 kB / 353.1 MB, free: 11.91 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.46e-05/0.005815, allocations: 92.11 kB / 353.2 MB, free: 11.79 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.352e-05/0.005889, allocations: 133.7 kB / 353.3 MB, free: 11.63 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.005891, allocations: 4 kB / 353.3 MB, free: 11.62 MB / 282.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001255/0.006017, allocations: 156.9 kB / 353.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.366e-05/0.006041, allocations: 34.44 kB / 353.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.477e-06/0.006044, allocations: 3.938 kB / 353.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.348e-06/0.006053, allocations: 4 kB / 353.5 MB, free: 11.41 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.697e-05/0.00609, allocations: 15.92 kB / 353.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.494e-06/0.006093, allocations: 4 kB / 353.6 MB, free: 11.39 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.006116, allocations: 7.953 kB / 353.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.749e-06/0.006126, allocations: 7.938 kB / 353.6 MB, free: 11.37 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.0002385/0.006364, allocations: 198.3 kB / 353.8 MB, free: 11.16 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.427e-05/0.006388, allocations: 15.91 kB / 353.8 MB, free: 11.14 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001495/0.006538, allocations: 142.2 kB / 353.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/0.00654, allocations: 0 / 353.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.006542, allocations: 0 / 353.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.006545, allocations: 0 / 353.9 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.056e-05/0.006626, allocations: 125.2 kB / 354 MB, free: 10.84 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.006628, allocations: 3.984 kB / 354 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.28e-05/0.00664, allocations: 4 kB / 354 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.353e-06/0.006642, allocations: 0 / 354 MB, free: 10.83 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-06/0.006647, allocations: 4 kB / 354.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.006648, allocations: 4 kB / 354.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.006649, allocations: 0 / 354.1 MB, free: 10.82 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.872e-05/0.006737, allocations: 163.7 kB / 354.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.709e-06/0.006747, allocations: 11.91 kB / 354.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.00676, allocations: 7.984 kB / 354.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.111e-05/0.006772, allocations: 4 kB / 354.2 MB, free: 10.6 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.646e-05/0.006788, allocations: 4.078 kB / 354.2 MB, free: 10.6 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.917e-06/0.006792, allocations: 4 kB / 354.2 MB, free: 10.59 MB / 282.7 MB Notification: Performance of sorting global known variables: time 5.191e-05/0.006844, allocations: 155.9 kB / 354.4 MB, free: 10.44 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.006844, allocations: 0 / 354.4 MB, free: 10.44 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0001508/0.006995, allocations: 23.94 kB / 354.4 MB, free: 10.42 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.0001055/0.0071, allocations: 127.2 kB / 354.5 MB, free: 10.29 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001119/0.007212, allocations: 158.4 kB / 354.7 MB, free: 10.1 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.022e-06/0.007213, allocations: 0 / 354.7 MB, free: 10.1 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 3.587e-05/0.007249, allocations: 100.8 kB / 354.8 MB, free: 9.98 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001242/0.007373, allocations: 23.92 kB / 354.8 MB, free: 9.957 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003728/0.007746, allocations: 268 kB / 355.1 MB, free: 9.66 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.149e-05/0.007777, allocations: 71.14 kB / 355.2 MB, free: 9.57 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 6.427e-05/0.007842, allocations: 40.64 kB / 355.2 MB, free: 9.531 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.86e-05/0.0079, allocations: 86.19 kB / 355.3 MB, free: 9.445 MB / 282.7 MB Notification: Performance of SimCode: time 7.52e-07/0.007901, allocations: 0 / 355.3 MB, free: 9.445 MB / 282.7 MB Notification: Performance of Templates: time 0.00233/0.01023, allocations: 1.005 MB / 356.3 MB, free: 8.461 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.8648723289370537]