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.007034/0.007034, allocations: 96.7 kB / 15.73 MB, free: 6.047 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001743/0.001743, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PNlib 3.0.0-master/package.mo): time 0.1876/0.1876, allocations: 16.75 MB / 307.3 MB, free: 14.83 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 62.47 kB / 425.9 MB, free: 36.9 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08695/0.08823, allocations: 53.48 MB / 479.4 MB, free: 10.8 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PNlib.Examples.DisTest.SingleTD): time 0.001918/0.09018, allocations: 1.054 MB / 480.4 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005729/0.09078, allocations: 278.1 kB / 480.7 MB, free: 9.762 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.926e-05/0.09089, allocations: 5.75 kB / 480.7 MB, free: 9.758 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001589/0.09106, allocations: 38.59 kB / 480.7 MB, free: 9.727 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000259/0.09134, allocations: 46.92 kB / 480.8 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.0915, allocations: 74.11 kB / 480.8 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.09177, allocations: 238.9 kB / 481.1 MB, free: 9.48 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.396e-05/0.09185, allocations: 21.3 kB / 481.1 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.09198, allocations: 110.3 kB / 481.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.39e-05/0.09205, allocations: 47.53 kB / 481.2 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.973e-05/0.09208, allocations: 4.344 kB / 481.3 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.772e-05/0.09214, allocations: 20.88 kB / 481.3 MB, free: 9.352 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.901e-05/0.09222, allocations: 26.42 kB / 481.3 MB, free: 9.332 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.028e-05/0.09228, allocations: 34.31 kB / 481.3 MB, free: 9.305 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.09245, allocations: 84.38 kB / 481.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.09246, allocations: 0.9375 kB / 481.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.09247, allocations: 0 / 481.4 MB, free: 9.242 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.021e-06/0.09248, allocations: 3.984 kB / 481.4 MB, free: 9.238 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.0004594/0.09294, allocations: 431.5 kB / 481.8 MB, free: 8.797 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.09299, allocations: 13.33 kB / 481.9 MB, free: 8.793 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.254e-05/0.09303, allocations: 46.14 kB / 481.9 MB, free: 8.742 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.975e-05/0.09307, allocations: 14.38 kB / 481.9 MB, free: 8.734 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.09323, allocations: 212.6 kB / 482.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.09326, allocations: 4.094 kB / 482.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.66e-05/0.09328, allocations: 13.38 kB / 482.1 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002395/0.09353, allocations: 138.6 kB / 482.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.09355, allocations: 1.938 kB / 482.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.235e-05/0.09356, allocations: 2.375 kB / 482.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.48e-06/0.09357, allocations: 3.25 kB / 482.3 MB, free: 8.367 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000187/0.09376, allocations: 64.73 kB / 482.3 MB, free: 8.336 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005764/0.09435, allocations: 0.9078 MB / 483.2 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001531/0.09451, allocations: 79.88 kB / 483.3 MB, free: 7.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.211e-05/0.09459, allocations: 40.52 kB / 483.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.208e-06/0.09461, allocations: 1.219 kB / 483.4 MB, free: 7.266 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001727/0.09478, allocations: 97 kB / 483.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of pre-optimization done (n=9): time 1.533e-06/0.09479, allocations: 0 / 483.5 MB, free: 7.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003213/0.09512, allocations: 157 kB / 483.6 MB, free: 7.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.998e-05/0.09517, allocations: 110.1 kB / 483.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.09531, allocations: 172.9 kB / 483.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.225e-05/0.09533, allocations: 27.14 kB / 483.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.398e-05/0.09539, allocations: 126.1 kB / 484 MB, free: 6.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.938e-05/0.09541, allocations: 24.16 kB / 484.1 MB, free: 6.617 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.127e-05/0.09547, allocations: 35.3 kB / 484.1 MB, free: 6.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.272e-05/0.09553, allocations: 325.6 kB / 484.4 MB, free: 6.266 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.424e-05/0.09561, allocations: 27.14 kB / 484.4 MB, free: 6.254 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.648e-05/0.0957, allocations: 84.88 kB / 484.5 MB, free: 6.168 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002902/0.096, allocations: 259.1 kB / 484.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.09601, allocations: 0 / 484.8 MB, free: 5.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002642/0.09628, allocations: 190.3 kB / 485 MB, free: 5.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.702e-05/0.09632, allocations: 36.3 kB / 485 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.642e-06/0.09633, allocations: 3.219 kB / 485 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.09635, allocations: 3.031 kB / 485 MB, free: 5.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.84e-05/0.09645, allocations: 23.14 kB / 485 MB, free: 5.746 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.09646, allocations: 5.75 kB / 485 MB, free: 5.742 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.488e-05/0.09653, allocations: 14.39 kB / 485 MB, free: 5.734 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.811e-05/0.09656, allocations: 11.34 kB / 485.1 MB, free: 5.73 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.0001241/0.09668, allocations: 171 kB / 485.2 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.216e-05/0.09671, allocations: 13.53 kB / 485.2 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.771e-05/0.09675, allocations: 13.06 kB / 485.3 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.427e-06/0.09676, allocations: 5.875 kB / 485.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.09676, allocations: 4.297 kB / 485.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.09677, allocations: 2 kB / 485.3 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003729/0.09715, allocations: 494.3 kB / 485.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.09717, allocations: 5.156 kB / 485.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.946e-05/0.0972, allocations: 3.562 kB / 485.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.09721, allocations: 1.312 kB / 485.8 MB, free: 5.051 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.09723, allocations: 5.641 kB / 485.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.09723, allocations: 0 / 485.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.09724, allocations: 1.438 kB / 485.8 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002012/0.09744, allocations: 310.1 kB / 486.1 MB, free: 4.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.362e-05/0.09748, allocations: 96.12 kB / 486.2 MB, free: 4.66 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.231e-05/0.09751, allocations: 5.781 kB / 486.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.898e-05/0.09761, allocations: 3.562 kB / 486.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.09766, allocations: 13.45 kB / 486.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.105e-06/0.09768, allocations: 3.75 kB / 486.2 MB, free: 4.648 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.401e-05/0.09774, allocations: 135.5 kB / 486.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.21e-07/0.09775, allocations: 0 / 486.3 MB, free: 4.539 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002921/0.09805, allocations: 25.88 kB / 486.3 MB, free: 4.531 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.0003613/0.09841, allocations: 0.8453 MB / 487.2 MB, free: 3.723 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002199/0.09864, allocations: 140.9 kB / 487.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.09866, allocations: 384 / 487.3 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 8.85e-05/0.09875, allocations: 93.38 kB / 487.4 MB, free: 3.543 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003159/0.09908, allocations: 9.5 kB / 487.4 MB, free: 3.539 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00148/0.1006, allocations: 1.872 MB / 489.3 MB, free: 1.844 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001159/0.1007, allocations: 0.7099 MB / 490 MB, free: 1.129 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.08e-05/0.1008, allocations: 24.09 kB / 490 MB, free: 1.117 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.358e-05/0.1008, allocations: 39.36 kB / 490.1 MB, free: 1.086 MB / 350.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1009, allocations: 4 kB / 490.1 MB, free: 1.082 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01579/0.1166, allocations: 2.466 MB / 492.5 MB, free: 15.4 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.555/7.672, allocations: 4.469 kB / 492.5 MB, free: 15.4 MB / 366.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