Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.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/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.OffTimer,fileNamePrefix="Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer",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.001467/0.001467, 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.001705/0.001705, allocations: 196 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.216/1.216, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.13/2.13, allocations: 390.2 MB / 0.6647 GB, free: 280 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001196/0.001196, allocations: 59.91 kB / 0.8126 GB, free: 14.2 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5045/0.5057, allocations: 140.4 MB / 0.9497 GB, free: 9.215 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.OffTimer): time 0.001991/0.5077, allocations: 1.453 MB / 0.9511 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004739/0.5082, allocations: 448.4 kB / 0.9516 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.307e-05/0.5083, allocations: 0 / 0.9516 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.425e-05/0.5083, allocations: 5 kB / 0.9516 GB, free: 7.715 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.742e-05/0.5084, allocations: 13.22 kB / 0.9516 GB, free: 7.703 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000112/0.5085, allocations: 19.95 kB / 0.9516 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.347e-05/0.5086, allocations: 51.59 kB / 0.9516 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 8.488e-05/0.5087, allocations: 10.66 kB / 0.9517 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.082e-05/0.5087, allocations: 28.03 kB / 0.9517 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.376e-05/0.5088, allocations: 17.08 kB / 0.9517 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.608e-05/0.5088, allocations: 4.875 kB / 0.9517 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.075e-05/0.5088, allocations: 3.188 kB / 0.9517 GB, free: 7.621 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.814e-05/0.5088, allocations: 18.61 kB / 0.9517 GB, free: 7.605 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.425e-05/0.5088, allocations: 22.95 kB / 0.9517 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 7.067e-05/0.5089, allocations: 43.91 kB / 0.9518 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.5089, allocations: 0 / 0.9518 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of FrontEnd: time 8.22e-07/0.5089, allocations: 0.9688 kB / 0.9518 GB, free: 7.559 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.569e-06/0.5089, allocations: 0 / 0.9518 GB, free: 7.559 MB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0003488/0.5093, allocations: 369.1 kB / 0.9521 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.016e-05/0.5093, allocations: 9.562 kB / 0.9521 GB, free: 7.172 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.5e-05/0.5094, allocations: 40.72 kB / 0.9522 GB, free: 7.125 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.391e-05/0.5094, allocations: 7.141 kB / 0.9522 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.761e-05/0.5095, allocations: 166.9 kB / 0.9524 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.02e-05/0.5095, allocations: 3 kB / 0.9524 GB, free: 6.922 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.5095, allocations: 8.062 kB / 0.9524 GB, free: 6.918 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.791e-05/0.5096, allocations: 64.05 kB / 0.9524 GB, free: 6.863 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.173e-06/0.5096, allocations: 4 kB / 0.9524 GB, free: 6.859 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.326e-06/0.5096, allocations: 5.188 kB / 0.9524 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.5096, allocations: 1.25 kB / 0.9524 GB, free: 6.855 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.263e-05/0.5097, allocations: 25.98 kB / 0.9525 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003387/0.51, allocations: 301 kB / 0.9527 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 8.421e-05/0.5101, allocations: 61.44 kB / 0.9528 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.451e-05/0.5102, allocations: 25.31 kB / 0.9528 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.017e-06/0.5102, allocations: 0 / 0.9528 GB, free: 6.465 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001087/0.5103, allocations: 72.03 kB / 0.9529 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=9): time 1.282e-06/0.5103, allocations: 1.062 kB / 0.9529 GB, free: 6.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=9): time 0.0001762/0.5105, allocations: 97.12 kB / 0.953 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.785e-05/0.5105, allocations: 70.23 kB / 0.9531 GB, free: 6.262 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.274e-05/0.5106, allocations: 99.36 kB / 0.9532 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.5106, allocations: 28.17 kB / 0.9532 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.258e-05/0.5106, allocations: 94.53 kB / 0.9533 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.773e-05/0.5106, allocations: 19.14 kB / 0.9533 GB, free: 6.02 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.459e-05/0.5107, allocations: 29.98 kB / 0.9533 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.289e-05/0.5107, allocations: 317.4 kB / 0.9536 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.102e-05/0.5107, allocations: 22.05 kB / 0.9536 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.689e-05/0.5108, allocations: 43.33 kB / 0.9537 GB, free: 5.621 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.269e-05/0.5109, allocations: 67.09 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.5109, allocations: 1.219 kB / 0.9537 GB, free: 5.566 MB / 0.7169 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001091/0.511, allocations: 98.3 kB / 0.9538 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.511, allocations: 6.375 kB / 0.9538 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.511, allocations: 1.625 kB / 0.9538 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.768e-06/0.511, allocations: 5.375 kB / 0.9539 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.001e-05/0.5111, allocations: 19.77 kB / 0.9539 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.5111, allocations: 2.562 kB / 0.9539 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.957e-05/0.5111, allocations: 7.406 kB / 0.9539 GB, free: 5.48 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.594e-06/0.5112, allocations: 11.72 kB / 0.9539 GB, free: 5.473 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition1,not1.y,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,$whenCondition2,$whenCondition3,offTim1.entryTime,$PRE.offTim1.entryTime,offTim2.entryTime,$PRE.offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * 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 4.793e-05/0.5112, allocations: 119.5 kB / 0.954 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.165e-05/0.5112, allocations: 9.391 kB / 0.954 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.289e-05/0.5113, allocations: 9.406 kB / 0.954 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.5113, allocations: 5.406 kB / 0.954 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.5113, allocations: 0 / 0.954 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.5113, allocations: 0 / 0.954 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002678/0.5115, allocations: 355.6 kB / 0.9544 GB, free: 4.977 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.5116, allocations: 5.156 kB / 0.9544 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.432e-05/0.5116, allocations: 3.031 kB / 0.9544 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.5116, allocations: 1.062 kB / 0.9544 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.785e-06/0.5116, allocations: 4.984 kB / 0.9544 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.5116, allocations: 7.938 kB / 0.9544 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.5116, allocations: 1.156 kB / 0.9544 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001085/0.5117, allocations: 180.3 kB / 0.9546 GB, free: 4.805 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.675e-05/0.5118, allocations: 82.84 kB / 0.9546 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.5118, allocations: 0 / 0.9546 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.913e-05/0.5119, allocations: 11.09 kB / 0.9547 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.184e-05/0.5119, allocations: 8.922 kB / 0.9547 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-06/0.5119, allocations: 1.094 kB / 0.9547 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.093e-05/0.5119, allocations: 91.98 kB / 0.9548 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5119, allocations: 0 / 0.9548 GB, free: 4.609 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002184/0.5122, allocations: 15.25 kB / 0.9548 GB, free: 4.605 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 7 (not1.y,$whenCondition3,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,offTim1.entryTime,offTim2.entryTime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * 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.000244/0.5124, allocations: 0.7154 MB / 0.9555 GB, free: 3.918 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000112/0.5125, allocations: 62.11 kB / 0.9555 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.253e-06/0.5125, allocations: 0 / 0.9555 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.418e-05/0.5126, allocations: 24.36 kB / 0.9555 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002388/0.5128, allocations: 17.06 kB / 0.9556 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008674/0.5137, allocations: 1.385 MB / 0.9569 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000105/0.5138, allocations: 0.6936 MB / 0.9576 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.341e-05/0.5138, allocations: 3.438 kB / 0.9576 GB, free: 1.828 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.469e-05/0.5139, allocations: 16 kB / 0.9576 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of SimCode: time 2e-07/0.5139, allocations: 0 / 0.9576 GB, free: 1.816 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01573/0.5296, allocations: 1.723 MB / 0.9593 GB, free: 0.8594 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.627/7.157, allocations: 0.875 kB / 0.9593 GB, free: 0.8594 MB / 0.7169 GB (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_9_Buildings_Controls_Continuous_Examples_OffTimer.fmu > Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_OffTimer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.OffTimer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches