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.00132/0.00132, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.001603/0.001603, allocations: 181 kB / 23.35 MB, free: 1.137 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 0.9177/0.9177, allocations: 177.1 MB / 203.8 MB, free: 5.473 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.06906/0.06906, allocations: 12.66 MB / 272.9 MB, free: 376 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.573e-06/1.573e-06, allocations: 0 / 293.6 MB, free: 12.35 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.158e-05/1.316e-05, allocations: 3.078 kB / 293.6 MB, free: 12.35 MB / 266.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.00158/0.001593, allocations: 1.008 MB / 294.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00061/0.002203, allocations: 390.9 kB / 295 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.478e-05/0.002278, allocations: 4.5 kB / 295 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.002425, allocations: 57.53 kB / 295.1 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002159/0.002641, allocations: 42.22 kB / 295.1 MB, free: 11.42 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002103/0.002851, allocations: 135.3 kB / 295.3 MB, free: 11.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002521/0.003103, allocations: 305.2 kB / 295.6 MB, free: 11.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.597e-05/0.003149, allocations: 15.72 kB / 295.6 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001821/0.003331, allocations: 206.9 kB / 295.8 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.505e-05/0.003406, allocations: 37.17 kB / 295.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.003422, allocations: 7.375 kB / 295.8 MB, free: 11.11 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.00354, allocations: 58.05 kB / 295.9 MB, free: 11.09 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.935e-05/0.003599, allocations: 28.55 kB / 295.9 MB, free: 11.08 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.636e-05/0.003626, allocations: 15.48 kB / 295.9 MB, free: 11.07 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001543/0.00378, allocations: 115.2 kB / 296 MB, free: 11.02 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.003782, allocations: 3.359 kB / 296 MB, free: 11.02 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.003783, allocations: 1.188 kB / 296 MB, free: 11.02 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.387e-06/0.003786, allocations: 0 / 296 MB, free: 11.02 MB / 266.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.000284/0.00407, allocations: 330.7 kB / 296.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.821e-05/0.004098, allocations: 10.52 kB / 296.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.491e-05/0.004143, allocations: 11.62 kB / 296.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.004249, allocations: 146.5 kB / 296.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.004262, allocations: 4.656 kB / 296.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.182e-05/0.004274, allocations: 9.594 kB / 296.5 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.00438, allocations: 133.8 kB / 296.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.214e-06/0.004387, allocations: 0.75 kB / 296.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.664e-06/0.004395, allocations: 7.719 kB / 296.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.004401, allocations: 1.156 kB / 296.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.234e-05/0.004443, allocations: 60.27 kB / 296.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000313/0.004756, allocations: 0.5447 MB / 297.3 MB, free: 9.871 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.293e-05/0.004849, allocations: 76.14 kB / 297.4 MB, free: 9.801 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.857e-05/0.004868, allocations: 43.58 kB / 297.4 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.518e-06/0.004877, allocations: 1.406 kB / 297.4 MB, free: 9.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.267e-05/0.00489, allocations: 32.66 kB / 297.4 MB, free: 9.719 MB / 266.7 MB Notification: Performance of pre-optimization done (n=6): time 1.112e-06/0.004891, allocations: 1.906 kB / 297.4 MB, free: 9.719 MB / 266.7 MB Notification: Performance of matching and sorting (n=6): time 0.000115/0.005006, allocations: 149.5 kB / 297.6 MB, free: 9.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.969e-05/0.005026, allocations: 79.06 kB / 297.7 MB, free: 9.488 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.053e-05/0.005096, allocations: 163.2 kB / 297.8 MB, free: 9.363 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.019e-06/0.005101, allocations: 27.14 kB / 297.8 MB, free: 9.332 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.96e-05/0.005131, allocations: 114.8 kB / 298 MB, free: 9.227 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.187e-06/0.00514, allocations: 19.81 kB / 298 MB, free: 9.211 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.249e-05/0.005172, allocations: 29.38 kB / 298 MB, free: 9.191 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.812e-05/0.005201, allocations: 331 kB / 298.3 MB, free: 8.867 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.932e-05/0.00522, allocations: 40.16 kB / 298.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.593e-05/0.005246, allocations: 68.31 kB / 298.4 MB, free: 8.762 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.314e-05/0.005299, allocations: 121.2 kB / 298.6 MB, free: 8.645 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.005301, allocations: 2.5 kB / 298.6 MB, free: 8.645 MB / 266.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.299e-05/0.005384, allocations: 141.2 kB / 298.7 MB, free: 8.535 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.005403, allocations: 32.86 kB / 298.7 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.005407, allocations: 2.281 kB / 298.7 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.005418, allocations: 2.547 kB / 298.7 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.744e-05/0.005455, allocations: 17.61 kB / 298.7 MB, free: 8.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.857e-06/0.005459, allocations: 8.453 kB / 298.8 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.379e-05/0.005483, allocations: 11.36 kB / 298.8 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.043e-05/0.005493, allocations: 4.984 kB / 298.8 MB, free: 8.488 MB / 266.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 4.518e-05/0.005538, allocations: 151.3 kB / 298.9 MB, free: 8.332 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.944e-05/0.005558, allocations: 9.547 kB / 298.9 MB, free: 8.332 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.478e-05/0.005643, allocations: 135.7 kB / 299.1 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.005644, allocations: 4.438 kB / 299.1 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.904e-06/0.005646, allocations: 0 / 299.1 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.00565, allocations: 2.047 kB / 299.1 MB, free: 8.211 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.671e-05/0.005706, allocations: 88.59 kB / 299.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.51e-07/0.005707, allocations: 1.094 kB / 299.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.067e-06/0.005716, allocations: 4.078 kB / 299.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.62e-07/0.005717, allocations: 0 / 299.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.689e-06/0.005722, allocations: 1.031 kB / 299.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.005723, allocations: 1.609 kB / 299.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.005724, allocations: 1.625 kB / 299.2 MB, free: 8.125 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.705e-05/0.005781, allocations: 149.7 kB / 299.3 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.607e-06/0.00579, allocations: 11.61 kB / 299.3 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.174e-05/0.005801, allocations: 2.188 kB / 299.3 MB, free: 7.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.034e-05/0.005812, allocations: 5.641 kB / 299.3 MB, free: 7.969 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.554e-05/0.005827, allocations: 7.688 kB / 299.3 MB, free: 7.965 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.435e-06/0.00583, allocations: 1.094 kB / 299.3 MB, free: 7.965 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.276e-05/0.005863, allocations: 44.53 kB / 299.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005863, allocations: 0 / 299.4 MB, free: 7.945 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001306/0.005993, allocations: 28.83 kB / 299.4 MB, free: 7.938 MB / 266.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 9.297e-05/0.006086, allocations: 97.25 kB / 299.5 MB, free: 7.859 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 9.342e-05/0.00618, allocations: 161.8 kB / 299.7 MB, free: 7.711 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.006183, allocations: 1.281 kB / 299.7 MB, free: 7.711 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 2.245e-05/0.006205, allocations: 96.3 kB / 299.8 MB, free: 7.609 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.379e-05/0.006279, allocations: 15.69 kB / 299.8 MB, free: 7.602 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002788/0.006558, allocations: 262.5 kB / 300 MB, free: 7.387 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.293e-05/0.006581, allocations: 67.91 kB / 300.1 MB, free: 7.312 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.081e-05/0.006642, allocations: 40.23 kB / 300.1 MB, free: 7.305 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.006693, allocations: 74.11 kB / 300.2 MB, free: 7.258 MB / 266.7 MB Notification: Performance of SimCode: time 4.31e-07/0.006694, allocations: 0 / 300.2 MB, free: 7.258 MB / 266.7 MB Notification: Performance of Templates: time 0.002455/0.009149, allocations: 0.9841 MB / 301.2 MB, free: 7.121 MB / 266.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.6838587569072843]