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: "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.ConTest.SingleTC,fileNamePrefix="PNlib_PNlib_Examples_ConTest_SingleTC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001445/0.001445, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001771/0.001771, allocations: 196 kB / 16.54 MB, free: 6.672 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.53/1.53, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1969/0.1969, allocations: 16.76 MB / 307.1 MB, free: 14.89 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00131/0.00131, allocations: 71.89 kB / 371.7 MB, free: 3.371 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3547/0.3561, allocations: 53.45 MB / 425.2 MB, free: 39.86 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.ConTest.SingleTC): time 0.002162/0.3583, allocations: 1.062 MB / 426.2 MB, free: 39.42 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006631/0.3589, allocations: 400 kB / 426.6 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.995e-05/0.359, allocations: 2.875 kB / 426.6 MB, free: 39.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001508/0.3592, allocations: 50.02 kB / 426.7 MB, free: 39.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002375/0.3594, allocations: 42.77 kB / 426.7 MB, free: 39.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001933/0.3596, allocations: 121.9 kB / 426.9 MB, free: 39.24 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002465/0.3599, allocations: 319.8 kB / 427.2 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.905e-05/0.36, allocations: 19.06 kB / 427.2 MB, free: 39.21 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.858e-05/0.3601, allocations: 149.5 kB / 427.3 MB, free: 39.19 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.533e-05/0.3601, allocations: 43 kB / 427.4 MB, free: 39.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.3602, allocations: 6.984 kB / 427.4 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001236/0.3603, allocations: 62.06 kB / 427.4 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.193e-05/0.3604, allocations: 25.73 kB / 427.5 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.786e-05/0.3604, allocations: 32.17 kB / 427.5 MB, free: 39.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001472/0.3606, allocations: 113.5 kB / 427.6 MB, free: 39.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.3606, allocations: 0 / 427.6 MB, free: 39.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.001e-06/0.3606, allocations: 3.344 kB / 427.6 MB, free: 39.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.3606, allocations: 0 / 427.6 MB, free: 39.11 MB / 350.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.0003648/0.361, allocations: 424 kB / 428 MB, free: 38.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.366e-05/0.361, allocations: 18.67 kB / 428 MB, free: 38.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.114e-05/0.361, allocations: 41.84 kB / 428.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.3611, allocations: 17.16 kB / 428.1 MB, free: 38.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001254/0.3612, allocations: 196.6 kB / 428.3 MB, free: 38.43 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.074e-05/0.3612, allocations: 9.125 kB / 428.3 MB, free: 38.42 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.3613, allocations: 7.188 kB / 428.3 MB, free: 38.42 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000159/0.3614, allocations: 114 kB / 428.4 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.3614, allocations: 0 / 428.4 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3615, allocations: 1.875 kB / 428.4 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.33e-06/0.3615, allocations: 6.906 kB / 428.4 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.794e-05/0.3616, allocations: 44.52 kB / 428.5 MB, free: 38.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005301/0.3621, allocations: 0.8252 MB / 429.3 MB, free: 37.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001441/0.3623, allocations: 50.52 kB / 429.3 MB, free: 37.52 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.173e-05/0.3623, allocations: 17.3 kB / 429.4 MB, free: 37.51 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.378e-05/0.3623, allocations: 6.812 kB / 429.4 MB, free: 37.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.452e-05/0.3623, allocations: 34.56 kB / 429.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=6): time 1.222e-06/0.3623, allocations: 0 / 429.4 MB, free: 37.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=6): time 0.0002117/0.3626, allocations: 121.7 kB / 429.5 MB, free: 37.39 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.674e-05/0.3626, allocations: 80.67 kB / 429.6 MB, free: 37.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.874e-05/0.3627, allocations: 170.8 kB / 429.8 MB, free: 37.19 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.105e-06/0.3627, allocations: 28.27 kB / 429.8 MB, free: 37.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.268e-05/0.3628, allocations: 111.8 kB / 429.9 MB, free: 37.07 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.098e-05/0.3628, allocations: 21.38 kB / 429.9 MB, free: 37.05 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.979e-05/0.3628, allocations: 41.23 kB / 430 MB, free: 37.03 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.17e-05/0.3629, allocations: 322.9 kB / 430.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.07e-05/0.3629, allocations: 19.69 kB / 430.3 MB, free: 36.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.521e-05/0.363, allocations: 59.53 kB / 430.4 MB, free: 36.67 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.726e-05/0.3631, allocations: 129.1 kB / 430.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.3631, allocations: 0 / 430.5 MB, free: 36.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000154/0.3632, allocations: 144.3 kB / 430.6 MB, free: 36.48 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.208e-05/0.3633, allocations: 31.08 kB / 430.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.3633, allocations: 6.562 kB / 430.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3633, allocations: 3.156 kB / 430.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.119e-05/0.3633, allocations: 14.67 kB / 430.7 MB, free: 36.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.541e-06/0.3634, allocations: 6.844 kB / 430.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.778e-05/0.3634, allocations: 6.594 kB / 430.7 MB, free: 36.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.29e-05/0.3634, allocations: 7.109 kB / 430.7 MB, free: 36.44 MB / 350.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 7.443e-05/0.3635, allocations: 157 kB / 430.9 MB, free: 36.29 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.177e-05/0.3635, allocations: 8.875 kB / 430.9 MB, free: 36.28 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000157/0.3637, allocations: 126.9 kB / 431 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.3637, allocations: 0 / 431 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.3637, allocations: 0 / 431 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.554e-06/0.3637, allocations: 6.938 kB / 431 MB, free: 36.2 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.444e-05/0.3638, allocations: 187.1 kB / 431.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3638, allocations: 0 / 431.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.864e-05/0.3638, allocations: 2.875 kB / 431.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.3639, allocations: 256 / 431.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.674e-06/0.3639, allocations: 3.938 kB / 431.2 MB, free: 36.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3639, allocations: 6.875 kB / 431.2 MB, free: 36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3639, allocations: 3.328 kB / 431.2 MB, free: 36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001131/0.364, allocations: 132.6 kB / 431.3 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.51e-05/0.364, allocations: 87.7 kB / 431.4 MB, free: 35.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.637e-05/0.3641, allocations: 6.688 kB / 431.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.524e-05/0.3641, allocations: 5.016 kB / 431.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.317e-05/0.3641, allocations: 2.812 kB / 431.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.429e-06/0.3641, allocations: 1.625 kB / 431.4 MB, free: 35.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.361e-05/0.3642, allocations: 130.8 kB / 431.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3642, allocations: 0 / 431.5 MB, free: 35.71 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002294/0.3644, allocations: 19.72 kB / 431.6 MB, free: 35.71 MB / 350.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.0002939/0.3648, allocations: 0.6906 MB / 432.3 MB, free: 35.07 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001437/0.3649, allocations: 112.2 kB / 432.4 MB, free: 35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.3649, allocations: 0 / 432.4 MB, free: 35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.797e-05/0.365, allocations: 70.58 kB / 432.4 MB, free: 34.94 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002112/0.3652, allocations: 16.05 kB / 432.5 MB, free: 34.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001127/0.3663, allocations: 1.587 MB / 434 MB, free: 33.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.878e-05/0.3664, allocations: 0.7006 MB / 434.7 MB, free: 32.96 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.12e-05/0.3665, allocations: 38.62 kB / 434.8 MB, free: 32.96 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.307e-05/0.3666, allocations: 46.59 kB / 434.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3666, allocations: 3.938 kB / 434.8 MB, free: 32.93 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01747/0.3841, allocations: 2.284 MB / 437.1 MB, free: 32.48 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.441/7.825, allocations: 11.67 kB / 437.1 MB, free: 32.48 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.ConTest.SingleTC_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PNlib_PNlib_Examples_ConTest_SingleTC.fmu > PNlib_PNlib.Examples.ConTest.SingleTC.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.ConTest.SingleTC_res.csv","/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