Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.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.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff,fileNamePrefix="Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff",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.001062/0.001062, 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.001113/0.001113, allocations: 198.1 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.239/1.239, allocations: 222.9 MB / 240.2 MB, free: 4.383 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.211/2.211, allocations: 390.2 MB / 0.6647 GB, free: 240 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001205, allocations: 63.91 kB / 0.8127 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5278/0.529, allocations: 140.4 MB / 0.9497 GB, free: 9.227 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff): time 0.001818/0.5308, allocations: 0.8618 MB / 0.9506 GB, free: 8.562 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0007625/0.5316, allocations: 0.8712 MB / 0.9514 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.682e-05/0.5317, allocations: 1.625 kB / 0.9514 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.984e-05/0.5317, allocations: 15.81 kB / 0.9514 GB, free: 7.832 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.475e-05/0.5318, allocations: 22.16 kB / 0.9515 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001527/0.532, allocations: 33.41 kB / 0.9515 GB, free: 7.785 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001035/0.5321, allocations: 110.3 kB / 0.9516 GB, free: 7.719 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001141/0.5322, allocations: 46.06 kB / 0.9516 GB, free: 7.688 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9e-05/0.5323, allocations: 52.91 kB / 0.9517 GB, free: 7.652 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.862e-05/0.5324, allocations: 56.02 kB / 0.9517 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.604e-05/0.5324, allocations: 10.69 kB / 0.9518 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.901e-05/0.5325, allocations: 10.69 kB / 0.9518 GB, free: 7.609 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.216e-05/0.5325, allocations: 21.25 kB / 0.9518 GB, free: 7.59 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.281e-05/0.5325, allocations: 50.3 kB / 0.9518 GB, free: 7.551 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001165/0.5327, allocations: 121.1 kB / 0.952 GB, free: 7.457 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.5327, allocations: 5.5 kB / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.062e-06/0.5327, allocations: 0 / 0.952 GB, free: 7.453 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.94e-06/0.5327, allocations: 0 / 0.952 GB, free: 7.453 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007438/0.5334, allocations: 462.6 kB / 0.9524 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.5335, allocations: 9.344 kB / 0.9524 GB, free: 7.012 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.963e-05/0.5335, allocations: 40.11 kB / 0.9524 GB, free: 6.965 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.474e-05/0.5335, allocations: 15.06 kB / 0.9525 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.187e-05/0.5336, allocations: 182.8 kB / 0.9526 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.237e-06/0.5337, allocations: 10.78 kB / 0.9526 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.641e-05/0.5337, allocations: 5.344 kB / 0.9526 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001835/0.5339, allocations: 97.2 kB / 0.9527 GB, free: 6.668 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.5339, allocations: 3.938 kB / 0.9527 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.148e-05/0.5339, allocations: 4 kB / 0.9527 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.551e-06/0.5339, allocations: 2.094 kB / 0.9528 GB, free: 6.66 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001622/0.5341, allocations: 65.25 kB / 0.9528 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006069/0.5347, allocations: 412.1 kB / 0.9532 GB, free: 6.242 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000131/0.5348, allocations: 63.31 kB / 0.9533 GB, free: 6.195 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.559e-05/0.5349, allocations: 31.28 kB / 0.9533 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.447e-05/0.5349, allocations: 1.281 kB / 0.9533 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.152e-05/0.5349, allocations: 39.73 kB / 0.9533 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.535, allocations: 0 / 0.9533 GB, free: 6.129 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5): time 0.000311/0.5353, allocations: 107.7 kB / 0.9534 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.864e-05/0.5353, allocations: 60.56 kB / 0.9535 GB, free: 5.992 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.5354, allocations: 151.3 kB / 0.9536 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.168e-05/0.5354, allocations: 29.7 kB / 0.9537 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.68e-05/0.5354, allocations: 105.1 kB / 0.9538 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.553e-05/0.5355, allocations: 15.02 kB / 0.9538 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.694e-05/0.5355, allocations: 22.39 kB / 0.9538 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.8e-05/0.5356, allocations: 322 kB / 0.9541 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.28e-05/0.5356, allocations: 35.64 kB / 0.9541 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.384e-05/0.5357, allocations: 31.55 kB / 0.9542 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.5359, allocations: 44.89 kB / 0.9542 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.5359, allocations: 0 / 0.9542 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0002018/0.5361, allocations: 100.5 kB / 0.9543 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.5361, allocations: 6.625 kB / 0.9543 GB, free: 5.25 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.5361, allocations: 5.031 kB / 0.9543 GB, free: 5.246 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.5361, allocations: 4 kB / 0.9543 GB, free: 5.242 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.645e-05/0.5362, allocations: 11.27 kB / 0.9543 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.312e-06/0.5362, allocations: 3.938 kB / 0.9543 GB, free: 5.234 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001693/0.5364, allocations: 25.72 kB / 0.9544 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-06/0.5364, allocations: 2.156 kB / 0.9544 GB, free: 5.223 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 (conSysSta.onTRoo.y,$PRE.conSysSta.onTRoo.y,conSysSta.onTOut.y,$PRE.conSysSta.onTOut.y,conSysSta.onSys) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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 5.823e-05/0.5365, allocations: 134.6 kB / 0.9545 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.132e-05/0.5365, allocations: 8.156 kB / 0.9545 GB, free: 5.086 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.968e-05/0.5365, allocations: 10.66 kB / 0.9545 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.794e-06/0.5365, allocations: 1.125 kB / 0.9545 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.5366, allocations: 3.938 kB / 0.9545 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.5366, allocations: 0 / 0.9545 GB, free: 5.078 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001359/0.5367, allocations: 200 kB / 0.9547 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.5367, allocations: 3.938 kB / 0.9547 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.176e-05/0.5368, allocations: 9.859 kB / 0.9547 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.5368, allocations: 5.656 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.5368, allocations: 0 / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.5368, allocations: 1.406 kB / 0.9547 GB, free: 4.84 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.5368, allocations: 3.938 kB / 0.9547 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001893/0.537, allocations: 193.5 kB / 0.9549 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.195e-05/0.537, allocations: 87.33 kB / 0.955 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.176e-05/0.5371, allocations: 5.484 kB / 0.955 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001944/0.5373, allocations: 30.03 kB / 0.955 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.45e-05/0.5373, allocations: 16.95 kB / 0.9551 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-06/0.5373, allocations: 1.875 kB / 0.9551 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 5.616e-05/0.5374, allocations: 113.3 kB / 0.9552 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5374, allocations: 0 / 0.9552 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002263/0.5376, allocations: 17.12 kB / 0.9552 GB, free: 4.438 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: 3 (conSysSta.onSys,conSysSta.onTOut.y,conSysSta.onTRoo.y) * Number of discrete states: 2 (conSysSta.onTRoo.y,conSysSta.onTOut.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 5 * 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 Backend phase and start with SimCode phase: time 0.0003327/0.538, allocations: 0.7187 MB / 0.9559 GB, free: 3.746 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001991/0.5382, allocations: 68.89 kB / 0.9559 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.5382, allocations: 4 kB / 0.956 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 8.651e-05/0.5383, allocations: 31.89 kB / 0.956 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002831/0.5386, allocations: 17.17 kB / 0.956 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001303/0.5399, allocations: 1.581 MB / 0.9575 GB, free: 2.293 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.54, allocations: 0.6947 MB / 0.9582 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.374e-05/0.5401, allocations: 18.8 kB / 0.9582 GB, free: 1.574 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.166e-05/0.5401, allocations: 32.02 kB / 0.9583 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.5401, allocations: 0 / 0.9583 GB, free: 1.547 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01737/0.5575, allocations: 2.712 MB / 0.9609 GB, free: 148 kB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.074/7.631, allocations: 6.969 kB / 0.9609 GB, free: 144 kB / 0.7169 GB (rm -f Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; mkfifo Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe >> ../files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 Buildings_9_Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.fmu > Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_Tutorial_CDL_Controls_Validation_SystemOnOff.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.Tutorial.CDL.Controls.Validation.SystemOnOff.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches