Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") translateModel(PNlib.Examples.DisTest.SingleTD,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="T1.active|T1.fire|time",fileNamePrefix="PNlib_PNlib.Examples.DisTest.SingleTD") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009178/0.0009178, allocations: 178.5 kB / 15.43 MB, free: 6.203 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.332/1.332, allocations: 225.7 MB / 241.9 MB, free: 388 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.000748/0.000748, allocations: 88.06 kB / 293.1 MB, free: 12.89 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.07187/0.07187, allocations: 17.11 MB / 361.3 MB, free: 8.898 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003903/0.0003903, allocations: 8.703 kB / 426.5 MB, free: 83.25 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07755/0.07796, allocations: 54.54 MB / 481.1 MB, free: 29.04 MB / 330.7 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.0009686/0.07899, allocations: 0.7746 MB / 481.9 MB, free: 28.26 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005466/0.07955, allocations: 438.6 kB / 482.3 MB, free: 27.79 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.309e-05/0.07964, allocations: 3.938 kB / 482.3 MB, free: 27.79 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001362/0.07978, allocations: 35.84 kB / 482.3 MB, free: 27.75 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001679/0.07996, allocations: 27.8 kB / 482.4 MB, free: 27.73 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001069/0.08008, allocations: 71.91 kB / 482.4 MB, free: 27.66 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.000161/0.08024, allocations: 207.5 kB / 482.6 MB, free: 27.45 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.575e-05/0.0803, allocations: 20.39 kB / 482.6 MB, free: 27.43 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.56e-05/0.08039, allocations: 99.55 kB / 482.7 MB, free: 27.34 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.045e-05/0.08045, allocations: 55.58 kB / 482.8 MB, free: 27.28 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.536e-05/0.08047, allocations: 4 kB / 482.8 MB, free: 27.28 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.391e-05/0.08052, allocations: 12 kB / 482.8 MB, free: 27.27 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 6.035e-05/0.08058, allocations: 19.84 kB / 482.8 MB, free: 27.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.533e-05/0.08065, allocations: 65.39 kB / 482.9 MB, free: 27.18 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.08075, allocations: 75.69 kB / 483 MB, free: 27.1 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.08077, allocations: 0 / 483 MB, free: 27.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.243e-06/0.08077, allocations: 0 / 483 MB, free: 27.1 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.418e-06/0.08078, allocations: 0 / 483 MB, free: 27.1 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0003997/0.08119, allocations: 429 kB / 483.4 MB, free: 26.63 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.08123, allocations: 12.03 kB / 483.4 MB, free: 26.62 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.798e-05/0.08127, allocations: 12.75 kB / 483.4 MB, free: 26.61 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.08144, allocations: 205.7 kB / 483.6 MB, free: 26.37 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.408e-05/0.08148, allocations: 4 kB / 483.6 MB, free: 26.36 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.467e-05/0.0815, allocations: 11.94 kB / 483.6 MB, free: 26.35 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.08174, allocations: 134.8 kB / 483.8 MB, free: 26.2 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.08176, allocations: 0 / 483.8 MB, free: 26.2 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.08178, allocations: 7.938 kB / 483.8 MB, free: 26.19 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.08179, allocations: 4 kB / 483.8 MB, free: 26.18 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001781/0.08197, allocations: 67.83 kB / 483.8 MB, free: 26.12 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005883/0.08257, allocations: 0.9058 MB / 484.7 MB, free: 25.11 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000152/0.08274, allocations: 85.23 kB / 484.8 MB, free: 25 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.738e-05/0.08281, allocations: 37.64 kB / 484.9 MB, free: 24.96 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.853e-06/0.08282, allocations: 0 / 484.9 MB, free: 24.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001604/0.08299, allocations: 93.16 kB / 485 MB, free: 24.85 MB / 330.7 MB Notification: Performance of pre-optimization done (n=9): time 1.132e-06/0.083, allocations: 4 kB / 485 MB, free: 24.85 MB / 330.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002863/0.08329, allocations: 159.2 kB / 485.1 MB, free: 24.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.424e-05/0.08333, allocations: 102.8 kB / 485.2 MB, free: 24.55 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001067/0.08345, allocations: 176.5 kB / 485.4 MB, free: 24.38 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.106e-05/0.08346, allocations: 29.7 kB / 485.4 MB, free: 24.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.732e-05/0.08352, allocations: 124 kB / 485.5 MB, free: 24.21 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.686e-05/0.08354, allocations: 19.8 kB / 485.6 MB, free: 24.19 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.47e-06/0.08355, allocations: 7.938 kB / 485.6 MB, free: 24.18 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.965e-05/0.08361, allocations: 322.8 kB / 485.9 MB, free: 23.86 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.432e-05/0.08368, allocations: 27.98 kB / 485.9 MB, free: 23.83 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.463e-05/0.08376, allocations: 82.84 kB / 486 MB, free: 23.73 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002605/0.08402, allocations: 269.4 kB / 486.3 MB, free: 23.41 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.08404, allocations: 4 kB / 486.3 MB, free: 23.41 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002243/0.08427, allocations: 191 kB / 486.4 MB, free: 23.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.101e-05/0.0843, allocations: 29.7 kB / 486.5 MB, free: 23.18 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.08431, allocations: 4 kB / 486.5 MB, free: 23.17 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.08433, allocations: 8.188 kB / 486.5 MB, free: 23.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.662e-05/0.08441, allocations: 15.98 kB / 486.5 MB, free: 23.15 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.47e-06/0.08442, allocations: 0 / 486.5 MB, free: 23.15 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.366e-05/0.08449, allocations: 23.84 kB / 486.5 MB, free: 23.12 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.08451, allocations: 11.94 kB / 486.5 MB, free: 23.11 MB / 330.7 MB Warning: Assuming fixed start value for the following 3 variables: T1.firingTime:DISCRETE(fixed = true protected = true ) "next putative firing time" type: Real T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real T1.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 15 ($PRE.T1.firingTime,$whenCondition2,T1.firingTime,$PRE.T1.delayPassed,T1.delayPassed,T1.activation.active,T1.active,$PRE.T1.fireTime,$PRE.T1.ani,T1.fireTime,T1.ani,T1.firingCon,$whenCondition1,T1.enabledByInPlaces,T1.enabledByOutPlaces) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 0.0001192/0.08463, allocations: 172 kB / 486.7 MB, free: 22.93 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.536e-05/0.08466, allocations: 11.91 kB / 486.7 MB, free: 22.92 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.692e-05/0.08469, allocations: 20.98 kB / 486.7 MB, free: 22.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.0847, allocations: 4 kB / 486.7 MB, free: 22.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.0847, allocations: 0 / 486.7 MB, free: 22.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-06/0.08471, allocations: 0 / 486.7 MB, free: 22.9 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000345/0.08506, allocations: 499.2 kB / 487.2 MB, free: 22.35 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.08508, allocations: 0 / 487.2 MB, free: 22.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.002e-05/0.08511, allocations: 20.3 kB / 487.2 MB, free: 22.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.08512, allocations: 0 / 487.2 MB, free: 22.33 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.08514, allocations: 4 kB / 487.2 MB, free: 22.33 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.08514, allocations: 4 kB / 487.3 MB, free: 22.32 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.08515, allocations: 0 / 487.3 MB, free: 22.32 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.08536, allocations: 308.3 kB / 487.6 MB, free: 22 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.613e-05/0.08539, allocations: 96.91 kB / 487.6 MB, free: 21.89 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.08542, allocations: 0 / 487.6 MB, free: 21.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.543e-05/0.08552, allocations: 4 kB / 487.7 MB, free: 21.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.242e-05/0.08558, allocations: 19.92 kB / 487.7 MB, free: 21.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.08559, allocations: 7.922 kB / 487.7 MB, free: 21.86 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.918e-05/0.08566, allocations: 122.2 kB / 487.8 MB, free: 21.74 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08566, allocations: 0 / 487.8 MB, free: 21.74 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002578/0.08593, allocations: 24 kB / 487.8 MB, free: 21.71 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,T1.fireTime,T1.ani,T1.active,$whenCondition2,T1.firingTime,T1.delayPassed,T1.activation.active) * Number of discrete states: 2 (T1.activation.active,T1.delayPassed) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * 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.954e-05/0.08603, allocations: 107.2 kB / 487.9 MB, free: 21.6 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000206/0.08625, allocations: 147.2 kB / 488.1 MB, free: 21.45 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.08626, allocations: 0 / 488.1 MB, free: 21.45 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.762e-05/0.08635, allocations: 91.33 kB / 488.2 MB, free: 21.34 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002983/0.08666, allocations: 15.98 kB / 488.2 MB, free: 21.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004017/0.08707, allocations: 253.4 kB / 488.4 MB, free: 21.05 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001079/0.08719, allocations: 0.7121 MB / 489.1 MB, free: 20.31 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 6.139e-05/0.08726, allocations: 20.62 kB / 489.2 MB, free: 20.29 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.68e-05/0.08729, allocations: 15.38 kB / 489.2 MB, free: 20.28 MB / 330.7 MB Notification: Performance of SimCode: time 3.11e-07/0.08729, allocations: 0 / 489.2 MB, free: 20.28 MB / 330.7 MB Notification: Performance of Templates: time 0.002688/0.08999, allocations: 0.9182 MB / 490.1 MB, free: 19.36 MB / 330.7 MB make -j1 -f PNlib_PNlib.Examples.DisTest.SingleTD.makefile (rm -f PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; mkfifo PNlib_PNlib.Examples.DisTest.SingleTD.pipe ; head -c 1048576 < PNlib_PNlib.Examples.DisTest.SingleTD.pipe >> ../files/PNlib_PNlib.Examples.DisTest.SingleTD.sim & ./PNlib_PNlib.Examples.DisTest.SingleTD -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.mat","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","../files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches