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.00159/0.00159, 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.001885/0.001885, allocations: 194.7 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.27/1.27, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.249/2.249, allocations: 390.2 MB / 0.6647 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 71.89 kB / 0.8127 GB, free: 14.17 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6105/0.6118, allocations: 140.4 MB / 0.9497 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001894/0.6137, allocations: 1.018 MB / 0.9507 GB, free: 8.32 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001179/0.6149, allocations: 1.312 MB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.457e-05/0.615, allocations: 1.562 kB / 0.952 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.535e-05/0.615, allocations: 16.94 kB / 0.952 GB, free: 7.242 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001058/0.6151, allocations: 39.78 kB / 0.9521 GB, free: 7.207 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005515/0.6157, allocations: 265.6 kB / 0.9523 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002516/0.6159, allocations: 327 kB / 0.9526 GB, free: 6.836 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001143/0.6161, allocations: 61.45 kB / 0.9527 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.6162, allocations: 119.3 kB / 0.9528 GB, free: 6.723 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001136/0.6163, allocations: 110 kB / 0.9529 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.443e-05/0.6164, allocations: 32.47 kB / 0.9529 GB, free: 6.641 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 9.517e-05/0.6165, allocations: 45.64 kB / 0.953 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.777e-05/0.6165, allocations: 43.73 kB / 0.953 GB, free: 6.598 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001124/0.6166, allocations: 116.4 kB / 0.9531 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002486/0.6169, allocations: 333.4 kB / 0.9535 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.6169, allocations: 1.438 kB / 0.9535 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.723e-06/0.6169, allocations: 0 / 0.9535 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 9.508e-06/0.6169, allocations: 0 / 0.9535 GB, free: 6.25 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.000688/0.6176, allocations: 0.5639 MB / 0.954 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.6176, allocations: 16.59 kB / 0.954 GB, free: 5.695 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.892e-05/0.6177, allocations: 46.05 kB / 0.9541 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.63e-05/0.6178, allocations: 22.16 kB / 0.9541 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006882/0.6184, allocations: 303.1 kB / 0.9544 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.923e-05/0.6185, allocations: 12.94 kB / 0.9544 GB, free: 5.352 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.662e-05/0.6185, allocations: 22.58 kB / 0.9544 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002401/0.6188, allocations: 144.7 kB / 0.9545 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.6188, allocations: 0 / 0.9545 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.432e-05/0.6188, allocations: 1.031 kB / 0.9546 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.6188, allocations: 2.906 kB / 0.9546 GB, free: 5.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002183/0.619, allocations: 83 kB / 0.9546 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005448/0.6196, allocations: 0.6431 MB / 0.9553 GB, free: 4.559 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.6199, allocations: 134.2 kB / 0.9554 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.6201, allocations: 54.95 kB / 0.9554 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.196e-05/0.6201, allocations: 1.25 kB / 0.9554 GB, free: 4.406 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002587/0.6204, allocations: 147 kB / 0.9556 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.403e-06/0.6204, allocations: 0 / 0.9556 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0004951/0.6209, allocations: 199.9 kB / 0.9558 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.6209, allocations: 109.7 kB / 0.9559 GB, free: 4.047 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001386/0.6211, allocations: 192.8 kB / 0.9561 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.529e-05/0.6211, allocations: 39.42 kB / 0.9561 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.748e-05/0.6212, allocations: 135.9 kB / 0.9562 GB, free: 3.73 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 3.063e-05/0.6212, allocations: 36.08 kB / 0.9563 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001038/0.6213, allocations: 58.91 kB / 0.9563 GB, free: 3.664 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.085e-05/0.6214, allocations: 331.6 kB / 0.9566 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002196/0.6216, allocations: 88.33 kB / 0.9567 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.6218, allocations: 162 kB / 0.9569 GB, free: 3.16 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003233/0.6222, allocations: 231.2 kB / 0.9571 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.6222, allocations: 0 / 0.9571 GB, free: 2.969 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005814/0.6228, allocations: 346.9 kB / 0.9574 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.578e-05/0.6228, allocations: 66.64 kB / 0.9575 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.6228, allocations: 1.312 kB / 0.9575 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.473e-05/0.6228, allocations: 7.344 kB / 0.9575 GB, free: 2.684 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.827e-05/0.6229, allocations: 23.73 kB / 0.9575 GB, free: 2.672 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.6229, allocations: 7.094 kB / 0.9575 GB, free: 2.668 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003701/0.6233, allocations: 65.55 kB / 0.9576 GB, free: 2.641 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.895e-05/0.6233, allocations: 14.84 kB / 0.9576 GB, free: 2.637 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 9.058e-05/0.6234, allocations: 148.5 kB / 0.9577 GB, free: 2.496 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.638e-05/0.6235, allocations: 20.77 kB / 0.9578 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002353/0.6237, allocations: 94.61 kB / 0.9579 GB, free: 2.418 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.6237, allocations: 5.5 kB / 0.9579 GB, free: 2.414 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.011e-06/0.6237, allocations: 5.5 kB / 0.9579 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.6237, allocations: 0 / 0.9579 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001387/0.6239, allocations: 237.6 kB / 0.9581 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.6239, allocations: 1.375 kB / 0.9581 GB, free: 2.16 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.737e-05/0.624, allocations: 18.92 kB / 0.9581 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.624, allocations: 1.375 kB / 0.9581 GB, free: 2.152 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/0.624, allocations: 6.734 kB / 0.9581 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/0.624, allocations: 1.375 kB / 0.9581 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.624, allocations: 9.297 kB / 0.9581 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003124/0.6243, allocations: 194.6 kB / 0.9583 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.867e-05/0.6244, allocations: 94.36 kB / 0.9584 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.984e-05/0.6244, allocations: 6.938 kB / 0.9584 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001044/0.6245, allocations: 13.48 kB / 0.9584 GB, free: 1.879 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.551e-05/0.6246, allocations: 34.83 kB / 0.9585 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.133e-05/0.6246, allocations: 12.11 kB / 0.9585 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.948e-05/0.6247, allocations: 145 kB / 0.9586 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6247, allocations: 0 / 0.9586 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002623/0.625, allocations: 46.48 kB / 0.9587 GB, free: 1.73 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.0005139/0.6255, allocations: 0.7384 MB / 0.9594 GB, free: 1.055 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004999/0.626, allocations: 318.4 kB / 0.9597 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.626, allocations: 0.75 kB / 0.9597 GB, free: 0.832 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001618/0.6262, allocations: 70.45 kB / 0.9597 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003008/0.6265, allocations: 45.83 kB / 0.9598 GB, free: 0.7734 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002693/0.6292, allocations: 2.285 MB / 0.962 GB, free: 14.94 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002396/0.6294, allocations: 0.7235 MB / 0.9627 GB, free: 14.22 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001043/0.6295, allocations: 22.39 kB / 0.9627 GB, free: 14.21 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.627e-05/0.6296, allocations: 59.94 kB / 0.9628 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of SimCode: time 1.743e-06/0.6296, allocations: 0 / 0.9628 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.051/1.68, allocations: 4.93 MB / 0.9676 GB, free: 11.67 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.45/12.13, allocations: 12.16 kB / 0.9676 GB, free: 11.66 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis_res.mat --tempDir=temp_Buildings_9_Buildings_Controls_OBC_CDL_Continuous_Validation_Hysteresis_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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