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.001133/0.001133, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001375/0.001375, allocations: 194.7 kB / 16.25 MB, free: 6.629 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.342/1.342, allocations: 222.9 MB / 239.9 MB, free: 4.516 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.276/2.276, allocations: 390.3 MB / 0.6644 GB, free: 0.543 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00144/0.00144, allocations: 63.91 kB / 0.8122 GB, free: 14.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.55/0.5515, allocations: 140.4 MB / 0.9493 GB, free: 9.191 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001839/0.5533, allocations: 1.079 MB / 0.9503 GB, free: 8.355 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001126/0.5545, allocations: 1.312 MB / 0.9516 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.804e-05/0.5545, allocations: 1.625 kB / 0.9516 GB, free: 7.293 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 4.099e-05/0.5546, allocations: 7.875 kB / 0.9516 GB, free: 7.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.625e-05/0.5547, allocations: 30.88 kB / 0.9516 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005655/0.5553, allocations: 243.8 kB / 0.9519 GB, free: 7.098 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002648/0.5555, allocations: 342.4 kB / 0.9522 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001162/0.5557, allocations: 45.94 kB / 0.9522 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.5558, allocations: 124.1 kB / 0.9524 GB, free: 6.797 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001103/0.5559, allocations: 109 kB / 0.9525 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 5.056e-05/0.556, allocations: 32.41 kB / 0.9525 GB, free: 6.715 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.5561, allocations: 41.34 kB / 0.9525 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.065e-05/0.5561, allocations: 38.44 kB / 0.9526 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0001022/0.5562, allocations: 121.8 kB / 0.9527 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002471/0.5565, allocations: 343.5 kB / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.5565, allocations: 0 / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.663e-06/0.5565, allocations: 0 / 0.953 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.5565, allocations: 0 / 0.953 GB, free: 6.32 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.0006985/0.5572, allocations: 0.5594 MB / 0.9536 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.722e-05/0.5572, allocations: 9.25 kB / 0.9536 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.108e-05/0.5573, allocations: 41.97 kB / 0.9536 GB, free: 5.73 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.779e-05/0.5573, allocations: 22.5 kB / 0.9536 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006753/0.558, allocations: 319.1 kB / 0.9539 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.435e-05/0.5581, allocations: 17.03 kB / 0.9539 GB, free: 5.418 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.05e-05/0.5581, allocations: 18.69 kB / 0.954 GB, free: 5.414 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002319/0.5583, allocations: 143.1 kB / 0.9541 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.205e-06/0.5584, allocations: 0 / 0.9541 GB, free: 5.297 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.513e-05/0.5584, allocations: 5.188 kB / 0.9541 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.53e-06/0.5584, allocations: 2.312 kB / 0.9541 GB, free: 5.293 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002098/0.5586, allocations: 76 kB / 0.9542 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005424/0.5592, allocations: 0.6383 MB / 0.9548 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.5595, allocations: 135 kB / 0.9549 GB, free: 4.527 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.5596, allocations: 55.27 kB / 0.955 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.5596, allocations: 1.062 kB / 0.955 GB, free: 4.484 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002286/0.5599, allocations: 150.6 kB / 0.9551 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.5599, allocations: 0 / 0.9551 GB, free: 4.355 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0004935/0.5604, allocations: 204.2 kB / 0.9553 GB, free: 4.246 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.002e-05/0.5604, allocations: 113.4 kB / 0.9554 GB, free: 4.113 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001399/0.5606, allocations: 196 kB / 0.9556 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.925e-05/0.5606, allocations: 35.95 kB / 0.9556 GB, free: 3.922 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 6.595e-05/0.5607, allocations: 124 kB / 0.9558 GB, free: 3.809 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.942e-05/0.5607, allocations: 36.67 kB / 0.9558 GB, free: 3.777 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001031/0.5608, allocations: 58.97 kB / 0.9559 GB, free: 3.742 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.196e-05/0.5609, allocations: 335 kB / 0.9562 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002194/0.5611, allocations: 91.81 kB / 0.9563 GB, free: 3.367 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000209/0.5613, allocations: 155.9 kB / 0.9564 GB, free: 3.238 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003115/0.5617, allocations: 240.7 kB / 0.9566 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5617, allocations: 0 / 0.9566 GB, free: 3.039 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005566/0.5622, allocations: 346.2 kB / 0.957 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.645e-05/0.5623, allocations: 68.92 kB / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.5623, allocations: 1.156 kB / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.5623, allocations: 3.469 kB / 0.957 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.789e-05/0.5624, allocations: 20.14 kB / 0.9571 GB, free: 2.746 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.993e-06/0.5624, allocations: 6.406 kB / 0.9571 GB, free: 2.742 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003549/0.5628, allocations: 73.36 kB / 0.9571 GB, free: 2.707 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.293e-05/0.5628, allocations: 16.05 kB / 0.9572 GB, free: 2.703 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.773e-05/0.5629, allocations: 140.1 kB / 0.9573 GB, free: 2.57 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.5629, allocations: 15.22 kB / 0.9573 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002266/0.5632, allocations: 98.8 kB / 0.9574 GB, free: 2.492 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.5632, allocations: 6.812 kB / 0.9574 GB, free: 2.488 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5632, allocations: 5.219 kB / 0.9574 GB, free: 2.484 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.5632, allocations: 7.969 kB / 0.9574 GB, free: 2.477 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000144/0.5634, allocations: 234.6 kB / 0.9576 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.5634, allocations: 0 / 0.9576 GB, free: 2.23 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.631e-05/0.5634, allocations: 15.41 kB / 0.9577 GB, free: 2.227 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.185e-06/0.5635, allocations: 5.203 kB / 0.9577 GB, free: 2.223 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.31e-05/0.5635, allocations: 6.312 kB / 0.9577 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.5635, allocations: 2.188 kB / 0.9577 GB, free: 2.219 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5635, allocations: 5.406 kB / 0.9577 GB, free: 2.215 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002984/0.5638, allocations: 191.5 kB / 0.9579 GB, free: 2.074 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.964e-05/0.5638, allocations: 93.45 kB / 0.9579 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.272e-05/0.5639, allocations: 14.64 kB / 0.958 GB, free: 1.957 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.96e-05/0.564, allocations: 9.578 kB / 0.958 GB, free: 1.953 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.921e-05/0.564, allocations: 27.34 kB / 0.958 GB, free: 1.938 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.3e-05/0.5641, allocations: 9.484 kB / 0.958 GB, free: 1.934 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.713e-05/0.5641, allocations: 146.6 kB / 0.9581 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5642, allocations: 0 / 0.9581 GB, free: 1.82 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002628/0.5644, allocations: 46.91 kB / 0.9582 GB, free: 1.812 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.0005025/0.5649, allocations: 0.7443 MB / 0.9589 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.000468/0.5654, allocations: 327.9 kB / 0.9592 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.5654, allocations: 0 / 0.9592 GB, free: 0.9023 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001515/0.5656, allocations: 66.41 kB / 0.9593 GB, free: 0.875 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002907/0.5659, allocations: 47.19 kB / 0.9593 GB, free: 0.8477 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.5685, allocations: 2.321 MB / 0.9616 GB, free: 14.97 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002377/0.5687, allocations: 0.7206 MB / 0.9623 GB, free: 14.25 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001106/0.5688, allocations: 30.53 kB / 0.9623 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.485e-05/0.5689, allocations: 55.58 kB / 0.9624 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.5689, allocations: 4 kB / 0.9624 GB, free: 14.19 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.303/1.872, allocations: 4.707 MB / 0.967 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002825/1.872, allocations: 204.6 kB / 0.9672 GB, free: 11.64 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.214/4.086, allocations: 1.156 kB / 0.9672 GB, free: 11.64 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