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.001448/0.001448, allocations: 102.6 kB / 15.98 MB, free: 6.348 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.001443/0.001443, allocations: 199.8 kB / 16.91 MB, free: 6.184 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.334/1.334, allocations: 222.9 MB / 240.6 MB, free: 15.45 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07435/0.07435, allocations: 16.72 MB / 307.5 MB, free: 14.5 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001238/0.001238, allocations: 61.66 kB / 371.8 MB, free: 48.55 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09752/0.09878, allocations: 53.47 MB / 425.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002227/0.1011, allocations: 1.138 MB / 426.4 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006713/0.1017, allocations: 399 kB / 426.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.25e-05/0.1019, allocations: 4 kB / 426.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000161/0.102, allocations: 35.78 kB / 426.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002427/0.1023, allocations: 35.8 kB / 426.8 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.1025, allocations: 111.8 kB / 426.9 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002363/0.1027, allocations: 319.4 kB / 427.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.27e-05/0.1028, allocations: 20.41 kB / 427.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001004/0.1029, allocations: 147.6 kB / 427.4 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.604e-05/0.103, allocations: 51.53 kB / 427.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.479e-05/0.103, allocations: 4 kB / 427.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001039/0.1031, allocations: 59.88 kB / 427.5 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.899e-05/0.1032, allocations: 23.92 kB / 427.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.719e-05/0.1032, allocations: 39.73 kB / 427.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001226/0.1034, allocations: 75.89 kB / 427.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.1034, allocations: 3.938 kB / 427.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1034, allocations: 0 / 427.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.76e-06/0.1034, allocations: 0 / 427.7 MB, free: 10.5 MB / 302.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.0003961/0.1038, allocations: 430.2 kB / 428.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.415e-05/0.1038, allocations: 19.83 kB / 428.1 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.113e-05/0.1039, allocations: 12.75 kB / 428.1 MB, free: 9.992 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.104, allocations: 196.7 kB / 428.3 MB, free: 9.762 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.016e-05/0.1041, allocations: 8.375 kB / 428.3 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.342e-05/0.1041, allocations: 7.938 kB / 428.3 MB, free: 9.746 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/0.1042, allocations: 109.9 kB / 428.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.1043, allocations: 0 / 428.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.359e-05/0.1043, allocations: 8 kB / 428.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.1043, allocations: 0 / 428.4 MB, free: 9.609 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.672e-05/0.1044, allocations: 47.86 kB / 428.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005035/0.1049, allocations: 0.7406 MB / 429.2 MB, free: 8.738 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001411/0.105, allocations: 46.62 kB / 429.3 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.026e-05/0.1051, allocations: 24.97 kB / 429.3 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.1051, allocations: 4 kB / 429.3 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.998e-05/0.1051, allocations: 42.5 kB / 429.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.302e-06/0.1051, allocations: 0 / 429.3 MB, free: 8.602 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002122/0.1054, allocations: 119.1 kB / 429.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.896e-05/0.1054, allocations: 77.11 kB / 429.5 MB, free: 8.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.1055, allocations: 175.4 kB / 429.7 MB, free: 8.199 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.956e-06/0.1055, allocations: 25.7 kB / 429.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.592e-05/0.1056, allocations: 115.8 kB / 429.8 MB, free: 8.051 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.084e-05/0.1056, allocations: 15.75 kB / 429.9 MB, free: 8.035 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.999e-05/0.1056, allocations: 33.7 kB / 429.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.786e-05/0.1057, allocations: 326.8 kB / 430.2 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.61e-05/0.1057, allocations: 19.98 kB / 430.2 MB, free: 7.648 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.484e-05/0.1058, allocations: 52.22 kB / 430.3 MB, free: 7.582 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.701e-05/0.1059, allocations: 135.6 kB / 430.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1059, allocations: 0 / 430.4 MB, free: 7.422 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000148/0.106, allocations: 143.2 kB / 430.6 MB, free: 7.27 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.1061, allocations: 29.7 kB / 430.6 MB, free: 7.234 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.4e-06/0.1061, allocations: 4 kB / 430.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.1061, allocations: 7.875 kB / 430.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.931e-05/0.1061, allocations: 16 kB / 430.6 MB, free: 7.207 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1062, allocations: 8.109 kB / 430.6 MB, free: 7.199 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.698e-05/0.1062, allocations: 7.906 kB / 430.6 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.243e-05/0.1062, allocations: 4.25 kB / 430.6 MB, free: 7.188 MB / 302.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 7.766e-05/0.1063, allocations: 155.5 kB / 430.8 MB, free: 7.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.837e-05/0.1063, allocations: 11.84 kB / 430.8 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001582/0.1065, allocations: 125.5 kB / 430.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1065, allocations: 112 / 430.9 MB, free: 6.875 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.1065, allocations: 3.938 kB / 430.9 MB, free: 6.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1065, allocations: 7.984 kB / 430.9 MB, free: 6.863 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.694e-05/0.1066, allocations: 189.6 kB / 431.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1066, allocations: 0 / 431.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.771e-05/0.1066, allocations: 4 kB / 431.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1067, allocations: 0 / 431.1 MB, free: 6.625 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.1067, allocations: 7.875 kB / 431.1 MB, free: 6.617 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1067, allocations: 3.984 kB / 431.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1067, allocations: 0 / 431.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001081/0.1068, allocations: 130.7 kB / 431.3 MB, free: 6.461 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.38e-05/0.1068, allocations: 92.92 kB / 431.4 MB, free: 6.352 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.022e-05/0.1068, allocations: 3.938 kB / 431.4 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.909e-05/0.1069, allocations: 4 kB / 431.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.218e-05/0.1069, allocations: 7.984 kB / 431.4 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.647e-06/0.1069, allocations: 0 / 431.4 MB, free: 6.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.039e-05/0.107, allocations: 127.8 kB / 431.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.107, allocations: 0 / 431.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002134/0.1072, allocations: 24 kB / 431.5 MB, free: 6.188 MB / 302.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.0001108/0.1073, allocations: 115.5 kB / 431.6 MB, free: 6.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001554/0.1075, allocations: 111.3 kB / 431.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1075, allocations: 0 / 431.7 MB, free: 5.941 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.553e-05/0.1075, allocations: 75.34 kB / 431.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002192/0.1077, allocations: 15.92 kB / 431.8 MB, free: 5.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003901/0.1081, allocations: 283.6 kB / 432.1 MB, free: 5.531 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001046/0.1083, allocations: 0.7003 MB / 432.8 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.067e-05/0.1083, allocations: 31.36 kB / 432.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1083, allocations: 0 / 432.8 MB, free: 4.773 MB / 302.1 MB Notification: Performance of Templates: time 0.00243/0.1108, allocations: 1.351 MB / 434.2 MB, free: 3.422 MB / 302.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