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.00139/0.00139, allocations: 113.6 kB / 16.37 MB, free: 6.012 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.00117/0.00117, allocations: 188.2 kB / 17.31 MB, free: 5.613 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.315/1.315, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.07694/0.07694, allocations: 16.72 MB / 307.9 MB, free: 14.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001286, allocations: 68.62 kB / 373 MB, free: 48.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07882/0.08012, allocations: 53.47 MB / 426.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001906/0.08206, allocations: 1.061 MB / 427.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006388/0.08272, allocations: 391.1 kB / 428 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.016e-05/0.08281, allocations: 4 kB / 428 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001395/0.08295, allocations: 51.64 kB / 428 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002239/0.08319, allocations: 43.66 kB / 428 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.0834, allocations: 119.8 kB / 428.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002363/0.08365, allocations: 323.3 kB / 428.5 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.338e-05/0.08371, allocations: 20.41 kB / 428.5 MB, free: 9.781 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001001/0.08381, allocations: 143.6 kB / 428.6 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.084e-05/0.08389, allocations: 51.52 kB / 428.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.456e-05/0.08391, allocations: 4 kB / 428.7 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001021/0.08402, allocations: 59.89 kB / 428.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.18e-05/0.08409, allocations: 19.92 kB / 428.8 MB, free: 9.508 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 3.777e-05/0.08413, allocations: 31.75 kB / 428.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.08428, allocations: 127.5 kB / 428.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.08429, allocations: 0 / 428.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.0843, allocations: 0 / 428.9 MB, free: 9.352 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.485e-06/0.08431, allocations: 0 / 428.9 MB, free: 9.352 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.0003389/0.08466, allocations: 428.8 kB / 429.3 MB, free: 8.879 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.948e-05/0.08469, allocations: 15.89 kB / 429.4 MB, free: 8.863 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.068e-05/0.08474, allocations: 12.75 kB / 429.4 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.08487, allocations: 204.5 kB / 429.6 MB, free: 8.613 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.08489, allocations: 4.375 kB / 429.6 MB, free: 8.609 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.3e-05/0.08491, allocations: 15.94 kB / 429.6 MB, free: 8.594 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001486/0.08506, allocations: 108.6 kB / 429.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.405e-06/0.08508, allocations: 0 / 429.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.989e-06/0.08509, allocations: 0 / 429.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.0851, allocations: 4 kB / 429.7 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.772e-05/0.0852, allocations: 43.92 kB / 429.7 MB, free: 8.422 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005191/0.08572, allocations: 0.8198 MB / 430.6 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001393/0.08587, allocations: 50.56 kB / 430.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.067e-05/0.08591, allocations: 24.98 kB / 430.6 MB, free: 7.414 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.486e-05/0.08594, allocations: 3.984 kB / 430.6 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.317e-05/0.08595, allocations: 34.55 kB / 430.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.333e-06/0.08596, allocations: 0 / 430.7 MB, free: 7.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002032/0.08617, allocations: 119.1 kB / 430.8 MB, free: 7.238 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.82e-05/0.08621, allocations: 85.05 kB / 430.9 MB, free: 7.137 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.74e-05/0.08631, allocations: 174.2 kB / 431 MB, free: 6.957 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.136e-06/0.08632, allocations: 29.7 kB / 431.1 MB, free: 6.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.108e-05/0.08637, allocations: 115.9 kB / 431.2 MB, free: 6.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.076e-05/0.08639, allocations: 15.75 kB / 431.2 MB, free: 6.789 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.076e-05/0.08643, allocations: 37.61 kB / 431.2 MB, free: 6.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.718e-05/0.08647, allocations: 318.8 kB / 431.6 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.938e-05/0.08652, allocations: 23.98 kB / 431.6 MB, free: 6.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.434e-05/0.08657, allocations: 56.33 kB / 431.6 MB, free: 6.332 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.473e-05/0.08666, allocations: 127.6 kB / 431.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.08667, allocations: 0 / 431.8 MB, free: 6.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001556/0.08683, allocations: 147.1 kB / 431.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.123e-05/0.08686, allocations: 37.83 kB / 431.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.08687, allocations: 0 / 431.9 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.08689, allocations: 7.938 kB / 431.9 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.032e-05/0.08694, allocations: 11.98 kB / 432 MB, free: 5.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.08696, allocations: 4 kB / 432 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.886e-05/0.087, allocations: 7.906 kB / 432 MB, free: 5.949 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.325e-05/0.08702, allocations: 4.25 kB / 432 MB, free: 5.945 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 6.722e-05/0.08709, allocations: 159.4 kB / 432.1 MB, free: 5.773 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.117e-05/0.08713, allocations: 7.906 kB / 432.1 MB, free: 5.766 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.08728, allocations: 133.5 kB / 432.3 MB, free: 5.625 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.903e-06/0.08729, allocations: 7.938 kB / 432.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.0873, allocations: 0 / 432.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.08731, allocations: 0 / 432.3 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.348e-05/0.0874, allocations: 185.6 kB / 432.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.08741, allocations: 0 / 432.5 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.947e-05/0.08743, allocations: 7.938 kB / 432.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.08744, allocations: 0 / 432.5 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.08745, allocations: 11.94 kB / 432.5 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.08746, allocations: 0 / 432.5 MB, free: 5.367 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.08746, allocations: 4 kB / 432.5 MB, free: 5.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001085/0.08757, allocations: 126.7 kB / 432.6 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.248e-05/0.08761, allocations: 84.92 kB / 432.7 MB, free: 5.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.112e-05/0.08763, allocations: 11.94 kB / 432.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.067e-05/0.08766, allocations: 0 / 432.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.557e-05/0.08769, allocations: 4 kB / 432.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.809e-06/0.0877, allocations: 0 / 432.7 MB, free: 5.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.475e-05/0.08777, allocations: 127.8 kB / 432.8 MB, free: 4.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.08777, allocations: 4 kB / 432.8 MB, free: 4.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002233/0.088, allocations: 28 kB / 432.9 MB, free: 4.941 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.000111/0.08812, allocations: 115.2 kB / 433 MB, free: 4.816 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001444/0.08827, allocations: 115.3 kB / 433.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.08828, allocations: 0 / 433.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.978e-05/0.08833, allocations: 71.39 kB / 433.2 MB, free: 4.609 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001955/0.08853, allocations: 10.81 kB / 433.2 MB, free: 4.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003734/0.08891, allocations: 233.8 kB / 433.4 MB, free: 4.348 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001036/0.08903, allocations: 0.7041 MB / 434.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.433e-05/0.08912, allocations: 48.36 kB / 434.1 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.985e-05/0.08916, allocations: 23.36 kB / 434.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.08916, allocations: 0 / 434.2 MB, free: 3.547 MB / 302.1 MB Notification: Performance of Templates: time 0.002826/0.09199, allocations: 0.8791 MB / 435 MB, free: 2.672 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 -s gbode -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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.ConTest.SingleTC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches