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.001103/0.001103, allocations: 183.1 kB / 15.98 MB, free: 5.77 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.238/1.238, allocations: 205.1 MB / 221.8 MB, free: 8.484 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.0009302/0.0009301, allocations: 98.3 kB / 269.2 MB, free: 8.441 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.07043/0.07043, allocations: 16.87 MB / 333.4 MB, free: 8.117 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009808/0.0009809, allocations: 59.91 kB / 394.9 MB, free: 61.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.072/0.07299, allocations: 50.68 MB / 445.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001801/0.07482, allocations: 1.159 MB / 446.7 MB, free: 9.977 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006204/0.07546, allocations: 431.6 kB / 447.2 MB, free: 9.555 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.262e-05/0.07553, allocations: 0 / 447.2 MB, free: 9.555 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000125/0.07566, allocations: 43.72 kB / 447.2 MB, free: 9.512 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000165/0.07584, allocations: 35.84 kB / 447.2 MB, free: 9.477 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001457/0.07599, allocations: 103.8 kB / 447.3 MB, free: 9.375 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001748/0.07618, allocations: 279.4 kB / 447.6 MB, free: 9.102 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.975e-05/0.07623, allocations: 28.38 kB / 447.6 MB, free: 9.078 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.052e-05/0.07632, allocations: 111.7 kB / 447.7 MB, free: 8.969 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.188e-05/0.07639, allocations: 55.53 kB / 447.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.07641, allocations: 0 / 447.8 MB, free: 8.914 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.063e-05/0.0765, allocations: 67.81 kB / 447.9 MB, free: 8.848 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.035e-05/0.07656, allocations: 19.92 kB / 447.9 MB, free: 8.828 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.839e-05/0.07661, allocations: 39.67 kB / 447.9 MB, free: 8.789 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001318/0.07674, allocations: 111.6 kB / 448 MB, free: 8.68 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.07675, allocations: 0 / 448 MB, free: 8.68 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.07676, allocations: 0 / 448 MB, free: 8.68 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.675e-06/0.07677, allocations: 0 / 448 MB, free: 8.68 MB / 298.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.000325/0.0771, allocations: 425.1 kB / 448.4 MB, free: 8.211 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.708e-05/0.07713, allocations: 12.03 kB / 448.5 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.823e-05/0.07717, allocations: 8.844 kB / 448.5 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001133/0.07729, allocations: 204.4 kB / 448.7 MB, free: 7.953 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/0.07731, allocations: 8 kB / 448.7 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.07733, allocations: 4 kB / 448.7 MB, free: 7.941 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001377/0.07747, allocations: 115.7 kB / 448.8 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.07749, allocations: 0 / 448.8 MB, free: 7.809 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.024e-05/0.0775, allocations: 8 kB / 448.8 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.07751, allocations: 0 / 448.8 MB, free: 7.801 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.112e-05/0.0776, allocations: 47.91 kB / 448.8 MB, free: 7.754 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00044/0.07804, allocations: 0.7405 MB / 449.6 MB, free: 6.93 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001269/0.07818, allocations: 54.56 kB / 449.6 MB, free: 6.867 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.813e-05/0.07822, allocations: 16.98 kB / 449.7 MB, free: 6.848 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.174e-05/0.07824, allocations: 0 / 449.7 MB, free: 6.848 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.658e-05/0.07826, allocations: 42.5 kB / 449.7 MB, free: 6.797 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 8.31e-07/0.07826, allocations: 0 / 449.7 MB, free: 6.797 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0001965/0.07846, allocations: 115.3 kB / 449.8 MB, free: 6.672 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.142e-05/0.07849, allocations: 85.09 kB / 449.9 MB, free: 6.57 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.935e-05/0.0786, allocations: 175.5 kB / 450.1 MB, free: 6.391 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.342e-06/0.07861, allocations: 25.7 kB / 450.1 MB, free: 6.359 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.816e-05/0.07865, allocations: 115.9 kB / 450.2 MB, free: 6.242 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.548e-06/0.07867, allocations: 15.8 kB / 450.2 MB, free: 6.227 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.774e-05/0.07871, allocations: 37.7 kB / 450.3 MB, free: 6.184 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.598e-05/0.07875, allocations: 326.8 kB / 450.6 MB, free: 5.855 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.471e-05/0.07879, allocations: 16 kB / 450.6 MB, free: 5.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.104e-05/0.07884, allocations: 52.22 kB / 450.6 MB, free: 5.773 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.123e-05/0.07893, allocations: 131.7 kB / 450.8 MB, free: 5.617 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.07893, allocations: 3.938 kB / 450.8 MB, free: 5.613 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001438/0.07908, allocations: 147 kB / 450.9 MB, free: 5.457 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.07911, allocations: 33.64 kB / 450.9 MB, free: 5.418 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.07912, allocations: 4 kB / 450.9 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.978e-06/0.07913, allocations: 0 / 450.9 MB, free: 5.414 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.697e-05/0.07918, allocations: 15.98 kB / 451 MB, free: 5.398 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.0792, allocations: 8.062 kB / 451 MB, free: 5.391 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.418e-05/0.07923, allocations: 11.94 kB / 451 MB, free: 5.379 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.071e-05/0.07925, allocations: 4 kB / 451 MB, free: 5.375 MB / 298.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 6.179e-05/0.07932, allocations: 155.5 kB / 451.1 MB, free: 5.207 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.965e-05/0.07935, allocations: 19.73 kB / 451.2 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001319/0.07949, allocations: 113.6 kB / 451.3 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.0795, allocations: 0 / 451.3 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.07951, allocations: 0 / 451.3 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.07951, allocations: 0 / 451.3 MB, free: 5.062 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.621e-05/0.07959, allocations: 197.6 kB / 451.5 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.0796, allocations: 0 / 451.5 MB, free: 4.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.863e-05/0.07963, allocations: 11.92 kB / 451.5 MB, free: 4.809 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.07963, allocations: 3.938 kB / 451.5 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.07964, allocations: 0 / 451.5 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.07965, allocations: 0 / 451.5 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.07965, allocations: 256 / 451.5 MB, free: 4.805 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000219/0.07987, allocations: 0.7152 MB / 452.2 MB, free: 4.023 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.145e-05/0.07991, allocations: 81.02 kB / 452.3 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.542e-05/0.07993, allocations: 7.938 kB / 452.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.809e-05/0.07995, allocations: 0 / 452.3 MB, free: 3.918 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.07997, allocations: 8 kB / 452.3 MB, free: 3.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-06/0.07998, allocations: 0 / 452.3 MB, free: 3.91 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.798e-05/0.08004, allocations: 131.2 kB / 452.4 MB, free: 3.781 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08005, allocations: 0 / 452.4 MB, free: 3.781 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002903/0.08034, allocations: 20 kB / 452.4 MB, free: 3.762 MB / 298.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.02e-05/0.08044, allocations: 119.2 kB / 452.6 MB, free: 3.637 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001204/0.08057, allocations: 103.3 kB / 452.7 MB, free: 3.523 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.08058, allocations: 0 / 452.7 MB, free: 3.523 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.488e-05/0.08062, allocations: 79.33 kB / 452.7 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001957/0.08082, allocations: 12 kB / 452.7 MB, free: 3.422 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003784/0.08121, allocations: 374.4 kB / 453.1 MB, free: 3.016 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.954e-05/0.08132, allocations: 0.7004 MB / 453.8 MB, free: 2.289 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.858e-05/0.08141, allocations: 44.31 kB / 453.9 MB, free: 2.246 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.54e-05/0.08144, allocations: 23.42 kB / 453.9 MB, free: 2.223 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.08145, allocations: 0 / 453.9 MB, free: 2.223 MB / 298.7 MB Notification: Performance of Templates: time 0.002394/0.08385, allocations: 0.8712 MB / 454.7 MB, free: 1.355 MB / 298.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