Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.ConTest.SingleTC.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo", uses=false) Using package PNlib with version 2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008553/0.0008554, allocations: 177.3 kB / 15.43 MB, free: 6.199 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.277/1.277, allocations: 225.7 MB / 241.9 MB, free: 404 kB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008885/0.0008883, allocations: 88.61 kB / 293.1 MB, free: 12.91 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PNlib 2.2.0-master/package.mo): time 0.1235/0.1235, allocations: 17.11 MB / 361.3 MB, free: 8.906 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003037, allocations: 9.281 kB / 426.5 MB, free: 83.34 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08265/0.08297, allocations: 54.53 MB / 481.1 MB, free: 29.06 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.001051/0.08407, allocations: 0.7702 MB / 481.8 MB, free: 28.28 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008949/0.08499, allocations: 0.7307 MB / 482.6 MB, free: 27.48 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001529/0.08517, allocations: 7.938 kB / 482.6 MB, free: 27.47 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.08536, allocations: 43.72 kB / 482.6 MB, free: 27.43 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002313/0.0856, allocations: 31.84 kB / 482.7 MB, free: 27.39 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.08583, allocations: 99.83 kB / 482.8 MB, free: 27.3 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001937/0.08603, allocations: 267.4 kB / 483 MB, free: 27.04 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.03e-05/0.0861, allocations: 20.39 kB / 483 MB, free: 27.02 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.528e-05/0.0862, allocations: 127.6 kB / 483.2 MB, free: 26.89 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.113e-05/0.08628, allocations: 51.47 kB / 483.2 MB, free: 26.84 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.345e-05/0.0863, allocations: 4 kB / 483.2 MB, free: 26.84 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001071/0.08641, allocations: 51.94 kB / 483.3 MB, free: 26.79 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 7.113e-05/0.08649, allocations: 23.91 kB / 483.3 MB, free: 26.76 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 4.825e-05/0.08655, allocations: 61.39 kB / 483.4 MB, free: 26.7 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001441/0.0867, allocations: 107.7 kB / 483.5 MB, free: 26.59 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.08671, allocations: 0 / 483.5 MB, free: 26.59 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.08672, allocations: 0 / 483.5 MB, free: 26.59 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.08673, allocations: 3.938 kB / 483.5 MB, free: 26.59 MB / 330.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.0003686/0.0871, allocations: 417.1 kB / 483.9 MB, free: 26.12 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.08714, allocations: 12.03 kB / 483.9 MB, free: 26.11 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.053e-05/0.0872, allocations: 8.844 kB / 483.9 MB, free: 26.11 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.08734, allocations: 202.2 kB / 484.1 MB, free: 25.87 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.006e-05/0.08737, allocations: 8 kB / 484.1 MB, free: 25.86 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.378e-05/0.08739, allocations: 8 kB / 484.1 MB, free: 25.86 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.08756, allocations: 109.9 kB / 484.2 MB, free: 25.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.824e-06/0.08757, allocations: 0 / 484.2 MB, free: 25.73 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.032e-05/0.08759, allocations: 4 kB / 484.2 MB, free: 25.72 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.0876, allocations: 0 / 484.2 MB, free: 25.72 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.213e-05/0.0877, allocations: 51.84 kB / 484.3 MB, free: 25.67 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005355/0.08824, allocations: 0.7483 MB / 485 MB, free: 24.84 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001414/0.08839, allocations: 50.48 kB / 485.1 MB, free: 24.78 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.277e-05/0.08843, allocations: 17.05 kB / 485.1 MB, free: 24.76 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.423e-05/0.08846, allocations: 8 kB / 485.1 MB, free: 24.75 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.72e-05/0.08848, allocations: 34.5 kB / 485.1 MB, free: 24.71 MB / 330.7 MB Notification: Performance of pre-optimization done (n=6): time 1.172e-06/0.08849, allocations: 4 kB / 485.1 MB, free: 24.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002214/0.08871, allocations: 119.2 kB / 485.2 MB, free: 24.58 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.446e-05/0.08875, allocations: 77.11 kB / 485.3 MB, free: 24.48 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001088/0.08886, allocations: 172.5 kB / 485.5 MB, free: 24.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.625e-06/0.08888, allocations: 25.7 kB / 485.5 MB, free: 24.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.647e-05/0.08893, allocations: 115.9 kB / 485.6 MB, free: 24.16 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.149e-05/0.08895, allocations: 11.81 kB / 485.6 MB, free: 24.15 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.08896, allocations: 0 / 485.6 MB, free: 24.15 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.929e-05/0.08901, allocations: 326.8 kB / 486 MB, free: 23.82 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.944e-05/0.08906, allocations: 28.03 kB / 486 MB, free: 23.79 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.556e-05/0.08911, allocations: 48.28 kB / 486 MB, free: 23.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.813e-05/0.08921, allocations: 139.6 kB / 486.2 MB, free: 23.57 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.08922, allocations: 4 kB / 486.2 MB, free: 23.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001787/0.08941, allocations: 147 kB / 486.3 MB, free: 23.41 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.08944, allocations: 37.64 kB / 486.3 MB, free: 23.36 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.08945, allocations: 0 / 486.3 MB, free: 23.36 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.08947, allocations: 0 / 486.3 MB, free: 23.36 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.889e-05/0.08954, allocations: 15.98 kB / 486.4 MB, free: 23.35 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.08955, allocations: 7.938 kB / 486.4 MB, free: 23.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.422e-05/0.0896, allocations: 16.31 kB / 486.4 MB, free: 23.32 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.08962, allocations: 7.984 kB / 486.4 MB, free: 23.32 MB / 330.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.757e-05/0.0897, allocations: 147.5 kB / 486.5 MB, free: 23.16 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.962e-05/0.08975, allocations: 23.75 kB / 486.6 MB, free: 23.13 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001996/0.08995, allocations: 149.5 kB / 486.7 MB, free: 22.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-06/0.08997, allocations: 0 / 486.7 MB, free: 22.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.117e-06/0.08998, allocations: 4 kB / 486.7 MB, free: 22.97 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.08998, allocations: 0 / 486.7 MB, free: 22.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.769e-05/0.09008, allocations: 189.6 kB / 486.9 MB, free: 22.74 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.09008, allocations: 0 / 486.9 MB, free: 22.74 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.91e-05/0.09011, allocations: 4 kB / 486.9 MB, free: 22.73 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.09012, allocations: 3.938 kB / 486.9 MB, free: 22.73 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.905e-06/0.09013, allocations: 4 kB / 486.9 MB, free: 22.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.09014, allocations: 3.938 kB / 486.9 MB, free: 22.72 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.09014, allocations: 7.984 kB / 486.9 MB, free: 22.71 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001218/0.09027, allocations: 130.6 kB / 487 MB, free: 22.56 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.977e-05/0.09031, allocations: 92.89 kB / 487.1 MB, free: 22.45 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.065e-05/0.09033, allocations: 0 / 487.1 MB, free: 22.45 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.538e-05/0.09037, allocations: 7.984 kB / 487.1 MB, free: 22.45 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.431e-05/0.0904, allocations: 4 kB / 487.2 MB, free: 22.44 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.31e-06/0.09041, allocations: 0 / 487.2 MB, free: 22.44 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.202e-05/0.09048, allocations: 132 kB / 487.3 MB, free: 22.31 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09049, allocations: 4 kB / 487.3 MB, free: 22.3 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002096/0.0907, allocations: 31.91 kB / 487.3 MB, free: 22.27 MB / 330.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 0.0001527/0.09086, allocations: 119.2 kB / 487.4 MB, free: 22.14 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001412/0.09102, allocations: 111.3 kB / 487.5 MB, free: 22.02 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.09103, allocations: 0 / 487.5 MB, free: 22.02 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.944e-05/0.09107, allocations: 75.33 kB / 487.6 MB, free: 21.94 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001702/0.09125, allocations: 11.94 kB / 487.6 MB, free: 21.93 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003942/0.09165, allocations: 251.6 kB / 487.9 MB, free: 21.66 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001142/0.09178, allocations: 0.7043 MB / 488.6 MB, free: 20.93 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.057e-05/0.09188, allocations: 56.42 kB / 488.6 MB, free: 20.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.664e-05/0.09192, allocations: 23.36 kB / 488.7 MB, free: 20.85 MB / 330.7 MB Notification: Performance of SimCode: time 3.31e-07/0.09193, allocations: 0 / 488.7 MB, free: 20.85 MB / 330.7 MB Notification: Performance of Templates: time 0.003322/0.09525, allocations: 0.9977 MB / 489.7 MB, free: 19.85 MB / 330.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