Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,fileNamePrefix="Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis",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.001733/0.001733, allocations: 108 kB / 15.61 MB, free: 152 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.002032/0.002032, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.377/1.377, allocations: 222.9 MB / 240.2 MB, free: 4.41 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.349/2.349, allocations: 390.2 MB / 0.6647 GB, free: 452 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5835/0.5848, allocations: 140.4 MB / 0.9497 GB, free: 9.219 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002268/0.5871, allocations: 1.022 MB / 0.9507 GB, free: 8.422 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001417/0.5886, allocations: 1.309 MB / 0.952 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.787e-05/0.5886, allocations: 1.094 kB / 0.952 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.719e-05/0.5887, allocations: 17.48 kB / 0.952 GB, free: 7.348 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001053/0.5888, allocations: 33.84 kB / 0.9521 GB, free: 7.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.000586/0.5894, allocations: 267.1 kB / 0.9523 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.000262/0.5897, allocations: 331.5 kB / 0.9526 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.5898, allocations: 45 kB / 0.9527 GB, free: 6.914 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.5899, allocations: 132.3 kB / 0.9528 GB, free: 6.832 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001141/0.5901, allocations: 105.2 kB / 0.9529 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.345e-05/0.5901, allocations: 31.91 kB / 0.9529 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.485e-05/0.5902, allocations: 46.73 kB / 0.953 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.435e-05/0.5903, allocations: 42.25 kB / 0.953 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001047/0.5904, allocations: 121.1 kB / 0.9531 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002509/0.5906, allocations: 334.4 kB / 0.9535 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.5906, allocations: 0 / 0.9535 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.312e-06/0.5907, allocations: 0 / 0.9535 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.5907, allocations: 1.031 kB / 0.9535 GB, free: 6.359 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.0007038/0.5914, allocations: 0.5609 MB / 0.954 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.5914, allocations: 13.66 kB / 0.954 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.02e-05/0.5914, allocations: 42.3 kB / 0.9541 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.915e-05/0.5915, allocations: 21.75 kB / 0.9541 GB, free: 5.758 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007219/0.5922, allocations: 311.2 kB / 0.9544 GB, free: 5.469 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.429e-05/0.5923, allocations: 17.06 kB / 0.9544 GB, free: 5.461 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.417e-05/0.5923, allocations: 21.84 kB / 0.9544 GB, free: 5.453 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002391/0.5926, allocations: 136.1 kB / 0.9545 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.5926, allocations: 0 / 0.9545 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.5926, allocations: 5.141 kB / 0.9546 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.5926, allocations: 2.625 kB / 0.9546 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002319/0.5929, allocations: 70.98 kB / 0.9546 GB, free: 5.309 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000564/0.5934, allocations: 0.6466 MB / 0.9553 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003561/0.5938, allocations: 142.5 kB / 0.9554 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.5939, allocations: 59.27 kB / 0.9554 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.594, allocations: 5.25 kB / 0.9555 GB, free: 4.512 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002757/0.5943, allocations: 140.8 kB / 0.9556 GB, free: 4.395 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 2.204e-06/0.5943, allocations: 5.375 kB / 0.9556 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0005464/0.5948, allocations: 198.5 kB / 0.9558 GB, free: 4.285 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.638e-05/0.5949, allocations: 117.4 kB / 0.9559 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001307/0.595, allocations: 194.8 kB / 0.9561 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.644e-05/0.595, allocations: 36.8 kB / 0.9561 GB, free: 3.961 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.831e-05/0.5951, allocations: 127.1 kB / 0.9562 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.823e-05/0.5951, allocations: 35.14 kB / 0.9563 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000108/0.5953, allocations: 66.03 kB / 0.9563 GB, free: 3.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.271e-05/0.5953, allocations: 331.7 kB / 0.9566 GB, free: 3.441 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.5956, allocations: 86.67 kB / 0.9567 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.5958, allocations: 159.5 kB / 0.9569 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000346/0.5962, allocations: 231 kB / 0.9571 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.5962, allocations: 1.688 kB / 0.9571 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006277/0.5968, allocations: 345.8 kB / 0.9574 GB, free: 2.863 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.774e-05/0.5969, allocations: 64.17 kB / 0.9575 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.993e-06/0.5969, allocations: 2.75 kB / 0.9575 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.495e-05/0.5969, allocations: 1.438 kB / 0.9575 GB, free: 2.797 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.436e-05/0.597, allocations: 21.39 kB / 0.9575 GB, free: 2.789 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.597, allocations: 9.281 kB / 0.9575 GB, free: 2.781 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/0.5974, allocations: 70.17 kB / 0.9576 GB, free: 2.75 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.382e-05/0.5974, allocations: 15.91 kB / 0.9576 GB, free: 2.746 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition3,$whenCondition4,pul.booPul.y,$PRE.pul.booPul.y,hysteresis1.y,$PRE.hysteresis1.y,$whenCondition1,$whenCondition2,pul1.booPul.y,$PRE.pul1.booPul.y,hysteresis2.y,$PRE.hysteresis2.y,hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 2 * 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.0001101/0.5976, allocations: 140.2 kB / 0.9577 GB, free: 2.613 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.929e-05/0.5976, allocations: 20.31 kB / 0.9578 GB, free: 2.602 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002729/0.5979, allocations: 94.27 kB / 0.9579 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5979, allocations: 1.969 kB / 0.9579 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.5979, allocations: 6 kB / 0.9579 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.5979, allocations: 0 / 0.9579 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001451/0.5981, allocations: 234.2 kB / 0.9581 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.5981, allocations: 0 / 0.9581 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.492e-05/0.5982, allocations: 27.8 kB / 0.9581 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.5982, allocations: 1.5 kB / 0.9581 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.5982, allocations: 6.172 kB / 0.9581 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.5982, allocations: 1.375 kB / 0.9581 GB, free: 2.266 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.5982, allocations: 3.938 kB / 0.9581 GB, free: 2.262 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003448/0.5985, allocations: 195.1 kB / 0.9583 GB, free: 2.117 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.064e-05/0.5986, allocations: 98.02 kB / 0.9584 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.5986, allocations: 6.484 kB / 0.9584 GB, free: 2.004 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001121/0.5987, allocations: 14.48 kB / 0.9584 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.812e-05/0.5988, allocations: 31.23 kB / 0.9585 GB, free: 1.977 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.272e-05/0.5988, allocations: 12.19 kB / 0.9585 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 8.648e-05/0.5989, allocations: 144.7 kB / 0.9586 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.5989, allocations: 0 / 0.9586 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002734/0.5992, allocations: 46.5 kB / 0.9586 GB, free: 1.852 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition3,$whenCondition4,hysteresis1.y,pul.booPul.y,$whenCondition1,$whenCondition2,hysteresis2.y,pul1.booPul.y,hysteresis.y) * Number of discrete states: 3 (hysteresis.y,hysteresis2.y,hysteresis1.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0005477/0.5998, allocations: 0.7443 MB / 0.9594 GB, free: 1.168 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0005106/0.6003, allocations: 323.8 kB / 0.9597 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.6003, allocations: 0 / 0.9597 GB, free: 0.9414 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001749/0.6005, allocations: 62.19 kB / 0.9597 GB, free: 0.918 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003181/0.6008, allocations: 53.27 kB / 0.9598 GB, free: 0.8867 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002807/0.6036, allocations: 2.289 MB / 0.962 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002648/0.6039, allocations: 0.7195 MB / 0.9627 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001128/0.604, allocations: 27.02 kB / 0.9628 GB, free: 14.32 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.959e-05/0.6041, allocations: 71.03 kB / 0.9628 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.6041, allocations: 0 / 0.9628 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.6272, allocations: 4.913 MB / 0.9676 GB, free: 11.78 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.118/7.745, allocations: 7.359 kB / 0.9676 GB, free: 11.77 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_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_OBC_CDL_Continuous_Validation_Hysteresis.fmu > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches