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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.007569/0.007569, allocations: 170.7 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.842/1.842, allocations: 205.4 MB / 221.3 MB, free: 13.83 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001068/0.001068, allocations: 94.86 kB / 269.6 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.06684/0.06684, allocations: 16.89 MB / 334.7 MB, free: 6.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003397/0.0003401, allocations: 7.938 kB / 396.9 MB, free: 46.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1185, allocations: 51.69 MB / 448.6 MB, free: 396 kB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1255/0.2441, allocations: 77.23 MB / 0.5135 GB, free: 3.047 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002702/0.2445, allocations: 59.97 kB / 0.5136 GB, free: 2.988 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005788/0.2503, allocations: 2.297 MB / 0.5158 GB, free: 0.6797 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.675e-06/0.2503, allocations: 4 kB / 0.5158 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.2503, allocations: 4 kB / 0.5158 GB, free: 0.6719 MB / 362.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.000525/0.2508, allocations: 417 kB / 0.5162 GB, free: 216 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.2509, allocations: 8.031 kB / 0.5162 GB, free: 208 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.181e-05/0.251, allocations: 11.91 kB / 0.5162 GB, free: 196 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2917/0.5427, allocations: 196.7 kB / 0.5164 GB, free: 80.2 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/0.5428, allocations: 8.766 kB / 0.5164 GB, free: 80.2 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.343e-05/0.5428, allocations: 5.75 kB / 0.5164 GB, free: 80.2 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.5431, allocations: 113.3 kB / 0.5166 GB, free: 80.13 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.5431, allocations: 1.375 kB / 0.5166 GB, free: 80.13 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.951e-05/0.5431, allocations: 5.406 kB / 0.5166 GB, free: 80.13 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.5432, allocations: 1 kB / 0.5166 GB, free: 80.13 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001163/0.5433, allocations: 51.81 kB / 0.5166 GB, free: 80.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007557/0.544, allocations: 0.7386 MB / 0.5173 GB, free: 79.44 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002092/0.5443, allocations: 51.08 kB / 0.5174 GB, free: 79.42 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.5443, allocations: 0 / 0.5174 GB, free: 79.42 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.291e-05/0.5443, allocations: 31.89 kB / 0.5174 GB, free: 79.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.162e-06/0.5443, allocations: 14.97 kB / 0.5174 GB, free: 79.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0003329/0.5447, allocations: 195.9 kB / 0.5176 GB, free: 79.21 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.406e-05/0.5447, allocations: 81.56 kB / 0.5177 GB, free: 79.12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.5449, allocations: 154.6 kB / 0.5178 GB, free: 79.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.265e-05/0.5449, allocations: 27.2 kB / 0.5179 GB, free: 78.99 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.373e-05/0.545, allocations: 118.7 kB / 0.518 GB, free: 78.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.439e-05/0.545, allocations: 17.12 kB / 0.518 GB, free: 78.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.09e-06/0.545, allocations: 0 / 0.518 GB, free: 78.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.07e-05/0.5451, allocations: 327.9 kB / 0.5183 GB, free: 78.58 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.222e-05/0.5451, allocations: 15.31 kB / 0.5183 GB, free: 78.58 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.814e-05/0.5452, allocations: 56.38 kB / 0.5184 GB, free: 78.54 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.303e-05/0.5452, allocations: 54.09 kB / 0.5184 GB, free: 78.51 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.5453, allocations: 1.656 kB / 0.5184 GB, free: 78.51 MB / 362.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002065/0.5455, allocations: 140.7 kB / 0.5186 GB, free: 78.44 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.615e-05/0.5455, allocations: 36.22 kB / 0.5186 GB, free: 78.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.282e-06/0.5455, allocations: 1.969 kB / 0.5186 GB, free: 78.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.98e-05/0.5456, allocations: 3.656 kB / 0.5186 GB, free: 78.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.293e-05/0.5456, allocations: 18.22 kB / 0.5186 GB, free: 78.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.5457, allocations: 4.062 kB / 0.5186 GB, free: 78.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.708e-05/0.5457, allocations: 14.89 kB / 0.5186 GB, free: 78.4 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.5457, allocations: 5.656 kB / 0.5186 GB, free: 78.4 MB / 362.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.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 0.000102/0.5458, allocations: 158.7 kB / 0.5188 GB, free: 78.25 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.216e-05/0.5459, allocations: 15.28 kB / 0.5188 GB, free: 78.25 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002569/0.5461, allocations: 144.6 kB / 0.5189 GB, free: 78.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.5462, allocations: 3.938 kB / 0.5189 GB, free: 78.16 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.5462, allocations: 1.312 kB / 0.5189 GB, free: 78.16 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.5462, allocations: 4 kB / 0.519 GB, free: 78.16 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001363/0.5463, allocations: 199.5 kB / 0.5191 GB, free: 77.96 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.227e-06/0.5463, allocations: 2.219 kB / 0.5191 GB, free: 77.96 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.231e-05/0.5464, allocations: 4.688 kB / 0.5191 GB, free: 77.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.5464, allocations: 0 / 0.5191 GB, free: 77.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.15e-05/0.5464, allocations: 4.281 kB / 0.5192 GB, free: 77.96 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.5464, allocations: 1.531 kB / 0.5192 GB, free: 77.96 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.5464, allocations: 0 / 0.5192 GB, free: 77.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001653/0.5466, allocations: 137.7 kB / 0.5193 GB, free: 77.86 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.316e-05/0.5466, allocations: 92.33 kB / 0.5194 GB, free: 77.76 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.104e-05/0.5467, allocations: 5.422 kB / 0.5194 GB, free: 77.76 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.693e-05/0.5467, allocations: 1.25 kB / 0.5194 GB, free: 77.76 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.5467, allocations: 12.72 kB / 0.5194 GB, free: 77.75 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.5467, allocations: 2.188 kB / 0.5194 GB, free: 77.75 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001047/0.5468, allocations: 131.4 kB / 0.5195 GB, free: 77.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5469, allocations: 0 / 0.5195 GB, free: 77.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002608/0.5471, allocations: 32.48 kB / 0.5195 GB, free: 77.67 MB / 362.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 (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.0001791/0.5473, allocations: 123 kB / 0.5197 GB, free: 77.57 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001934/0.5475, allocations: 111.9 kB / 0.5198 GB, free: 77.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.5475, allocations: 0 / 0.5198 GB, free: 77.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.182e-05/0.5476, allocations: 72.73 kB / 0.5198 GB, free: 77.44 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000169/0.5478, allocations: 15.03 kB / 0.5199 GB, free: 77.44 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001377/0.5491, allocations: 452.2 kB / 0.5203 GB, free: 77.27 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001885/0.5493, allocations: 0.7041 MB / 0.521 GB, free: 76.58 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001283/0.5495, allocations: 51.98 kB / 0.521 GB, free: 76.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.583e-05/0.5495, allocations: 26.64 kB / 0.5211 GB, free: 76.56 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5495, allocations: 1.281 kB / 0.5211 GB, free: 76.56 MB / 362.7 MB Notification: Performance of Templates: time 0.00415/0.5537, allocations: 0.9889 MB / 0.522 GB, free: 76.48 MB / 362.7 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