Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PNlib_PNlib.Examples.DisTest.SingleTD.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.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PNlib.Examples.DisTest.SingleTD,fileNamePrefix="PNlib_PNlib_Examples_DisTest_SingleTD",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.001473/0.001472, 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.001832/0.001832, allocations: 195.4 kB / 16.53 MB, free: 6.391 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.475/1.475, allocations: 222.9 MB / 240.2 MB, free: 4.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.2079/0.2079, allocations: 16.76 MB / 307.2 MB, free: 14.93 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001226/0.001226, allocations: 63.91 kB / 371.7 MB, free: 3.367 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3442, allocations: 53.45 MB / 425.2 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.002041/0.3463, allocations: 1.045 MB / 426.2 MB, free: 39.31 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005963/0.3469, allocations: 285 kB / 426.5 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.657e-05/0.347, allocations: 2.781 kB / 426.5 MB, free: 39.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001493/0.3471, allocations: 35.36 kB / 426.6 MB, free: 39.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002343/0.3474, allocations: 40.45 kB / 426.6 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001504/0.3475, allocations: 69.42 kB / 426.7 MB, free: 39.18 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002964/0.3478, allocations: 239.8 kB / 426.9 MB, free: 39.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.629e-05/0.3479, allocations: 31.5 kB / 426.9 MB, free: 39.15 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001373/0.3481, allocations: 114.5 kB / 427 MB, free: 39.13 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.481e-05/0.3482, allocations: 49.36 kB / 427.1 MB, free: 39.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.192e-05/0.3482, allocations: 9.656 kB / 427.1 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.259e-05/0.3483, allocations: 5.812 kB / 427.1 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.282e-05/0.3484, allocations: 26.09 kB / 427.1 MB, free: 39.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.311e-05/0.3484, allocations: 49.56 kB / 427.2 MB, free: 39.07 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001546/0.3486, allocations: 73.42 kB / 427.2 MB, free: 39.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.92e-06/0.3486, allocations: 0 / 427.2 MB, free: 39.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.3486, allocations: 2.781 kB / 427.3 MB, free: 39.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.88e-05/0.3486, allocations: 0 / 427.3 MB, free: 39.05 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.0005458/0.3492, allocations: 435 kB / 427.7 MB, free: 38.64 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.607e-05/0.3492, allocations: 18.98 kB / 427.7 MB, free: 38.63 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.914e-05/0.3493, allocations: 40.97 kB / 427.7 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.764e-05/0.3493, allocations: 14.56 kB / 427.7 MB, free: 38.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001827/0.3495, allocations: 207.5 kB / 428 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.686e-05/0.3496, allocations: 9.188 kB / 428 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.695e-05/0.3496, allocations: 5.75 kB / 428 MB, free: 38.37 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002777/0.3499, allocations: 135.7 kB / 428.1 MB, free: 38.29 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.3499, allocations: 4 kB / 428.1 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.376e-05/0.3499, allocations: 2.844 kB / 428.1 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/0.3499, allocations: 0 / 428.1 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002048/0.3501, allocations: 64 kB / 428.2 MB, free: 38.28 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006751/0.3508, allocations: 0.9042 MB / 429.1 MB, free: 37.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.351, allocations: 79.38 kB / 429.1 MB, free: 37.34 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.559e-05/0.351, allocations: 37.17 kB / 429.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.526e-06/0.3511, allocations: 4 kB / 429.2 MB, free: 37.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001791/0.3512, allocations: 93.03 kB / 429.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.232e-06/0.3513, allocations: 0 / 429.3 MB, free: 37.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003042/0.3516, allocations: 155.8 kB / 429.4 MB, free: 37.18 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.3516, allocations: 110.9 kB / 429.5 MB, free: 37.05 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.3518, allocations: 177.7 kB / 429.7 MB, free: 36.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.397e-05/0.3518, allocations: 30.67 kB / 429.7 MB, free: 36.91 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.108e-05/0.3518, allocations: 110.8 kB / 429.9 MB, free: 36.82 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.212e-05/0.3519, allocations: 28.08 kB / 429.9 MB, free: 36.8 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.977e-05/0.3519, allocations: 41.25 kB / 429.9 MB, free: 36.78 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.844e-05/0.352, allocations: 326.6 kB / 430.2 MB, free: 36.47 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.317e-05/0.3521, allocations: 27.42 kB / 430.3 MB, free: 36.47 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.31e-05/0.3522, allocations: 85.98 kB / 430.4 MB, free: 36.4 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002749/0.3525, allocations: 263.7 kB / 430.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3525, allocations: 0 / 430.6 MB, free: 36.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002548/0.3527, allocations: 194.6 kB / 430.8 MB, free: 36.11 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.3528, allocations: 31.52 kB / 430.8 MB, free: 36.08 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.3528, allocations: 10.91 kB / 430.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.113e-05/0.3528, allocations: 2.875 kB / 430.8 MB, free: 36.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.156e-05/0.3529, allocations: 22.58 kB / 430.9 MB, free: 36.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.3529, allocations: 2.75 kB / 430.9 MB, free: 36.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.983e-05/0.3529, allocations: 9.656 kB / 430.9 MB, free: 36.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.643e-05/0.353, allocations: 8.906 kB / 430.9 MB, free: 36.06 MB / 350.1 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.ani:DISCRETE(fixed = true protected = true ) "for transition animation" type: Boolean T1.fireTime:DISCRETE(fixed = true protected = true ) "for transition animation" type: Real 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,T1.activation.active,T1.delayPassed,$PRE.T1.delayPassed,T1.firingTime,T1.active,$whenCondition2,$PRE.T1.ani,$PRE.T1.fireTime,T1.ani,T1.fireTime,T1.firingCon,T1.enabledByInPlaces,$whenCondition1,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.0001438/0.3531, allocations: 177 kB / 431.1 MB, free: 35.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.037e-05/0.3531, allocations: 13.45 kB / 431.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/0.3532, allocations: 16.86 kB / 431.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.3532, allocations: 2.688 kB / 431.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3532, allocations: 0 / 431.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.3532, allocations: 2.375 kB / 431.1 MB, free: 35.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003851/0.3536, allocations: 499 kB / 431.6 MB, free: 35.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3536, allocations: 6.812 kB / 431.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.724e-05/0.3536, allocations: 6.812 kB / 431.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.3536, allocations: 0 / 431.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.3537, allocations: 2.719 kB / 431.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3537, allocations: 0 / 431.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.3537, allocations: 0 / 431.6 MB, free: 35.47 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000222/0.3539, allocations: 306.7 kB / 431.9 MB, free: 35.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.818e-05/0.3539, allocations: 101.3 kB / 432 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.141e-05/0.354, allocations: 3.281 kB / 432 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.441e-05/0.3541, allocations: 5.5 kB / 432 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.149e-05/0.3541, allocations: 11.86 kB / 432 MB, free: 35.12 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.664e-06/0.3541, allocations: 6.203 kB / 432 MB, free: 35.12 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.516e-05/0.3542, allocations: 123.8 kB / 432.1 MB, free: 35.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3542, allocations: 3.938 kB / 432.1 MB, free: 35.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002856/0.3545, allocations: 21.09 kB / 432.2 MB, free: 35.04 MB / 350.1 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 0.0004242/0.3549, allocations: 0.8499 MB / 433 MB, free: 34.26 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002273/0.3552, allocations: 146.5 kB / 433.2 MB, free: 34.18 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3552, allocations: 0 / 433.2 MB, free: 34.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.69e-05/0.3553, allocations: 91.69 kB / 433.2 MB, free: 34.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.3556, allocations: 15.59 kB / 433.3 MB, free: 34.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.3572, allocations: 1.866 MB / 435.1 MB, free: 32.59 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001706/0.3574, allocations: 0.704 MB / 435.8 MB, free: 31.9 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.314e-05/0.3575, allocations: 27.41 kB / 435.9 MB, free: 31.89 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.958e-05/0.3575, allocations: 32.67 kB / 435.9 MB, free: 31.87 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3575, allocations: 0 / 435.9 MB, free: 31.87 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01768/0.3752, allocations: 2.426 MB / 438.3 MB, free: 31.44 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.409/7.784, allocations: 7.578 kB / 438.3 MB, free: 31.44 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file PNlib_PNlib.Examples.DisTest.SingleTD_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_DisTest_SingleTD.fmu > PNlib_PNlib.Examples.DisTest.SingleTD.pipe 2>&1) diffSimulationResults("PNlib_PNlib.Examples.DisTest.SingleTD_res.csv","/mnt/ReferenceFiles/PNlib/ReferenceFiles/PNlib.Examples.DisTest.SingleTD.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PNlib_PNlib.Examples.DisTest.SingleTD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches