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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001131/0.001131, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001232/0.001232, allocations: 195.1 kB / 16.14 MB, free: 6.656 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.278/1.278, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.121/2.121, allocations: 390.2 MB / 0.6643 GB, free: 0.6328 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001307/0.001307, allocations: 71.91 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.513/0.5144, allocations: 140.4 MB / 0.9491 GB, free: 9.164 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.001673/0.5161, allocations: 1.074 MB / 0.9501 GB, free: 8.332 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001232/0.5173, allocations: 1.34 MB / 0.9514 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.81e-05/0.5174, allocations: 1.656 kB / 0.9514 GB, free: 7.258 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.877e-05/0.5175, allocations: 11.86 kB / 0.9514 GB, free: 7.246 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 8.896e-05/0.5175, allocations: 18.89 kB / 0.9515 GB, free: 7.23 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004848/0.518, allocations: 260.9 kB / 0.9517 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001885/0.5182, allocations: 281.1 kB / 0.952 GB, free: 6.898 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.173e-05/0.5183, allocations: 43.53 kB / 0.952 GB, free: 6.871 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.5184, allocations: 106.7 kB / 0.9521 GB, free: 6.812 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 9.335e-05/0.5185, allocations: 102.8 kB / 0.9522 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 4.198e-05/0.5186, allocations: 14.38 kB / 0.9522 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.419e-05/0.5187, allocations: 28.33 kB / 0.9523 GB, free: 6.73 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.711e-05/0.5187, allocations: 30.5 kB / 0.9523 GB, free: 6.707 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 8.943e-05/0.5188, allocations: 101.3 kB / 0.9524 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002134/0.519, allocations: 324.2 kB / 0.9527 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.519, allocations: 1.375 kB / 0.9527 GB, free: 6.383 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.21e-07/0.519, allocations: 3.938 kB / 0.9527 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.218e-06/0.519, allocations: 4 kB / 0.9527 GB, free: 6.375 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.000597/0.5196, allocations: 0.5607 MB / 0.9532 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.854e-05/0.5197, allocations: 10.41 kB / 0.9533 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.709e-05/0.5197, allocations: 41.55 kB / 0.9533 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.989e-05/0.5198, allocations: 22.72 kB / 0.9533 GB, free: 5.777 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006418/0.5204, allocations: 310.4 kB / 0.9536 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.5205, allocations: 12.81 kB / 0.9536 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.653e-05/0.5205, allocations: 25.97 kB / 0.9537 GB, free: 5.473 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002076/0.5207, allocations: 131.2 kB / 0.9538 GB, free: 5.367 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.122e-06/0.5207, allocations: 5.406 kB / 0.9538 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.267e-05/0.5207, allocations: 9.516 kB / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.5207, allocations: 1.438 kB / 0.9538 GB, free: 5.355 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001994/0.521, allocations: 71.73 kB / 0.9539 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004955/0.5215, allocations: 0.6424 MB / 0.9545 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002982/0.5218, allocations: 142.9 kB / 0.9546 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001097/0.5219, allocations: 51.2 kB / 0.9547 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/0.5219, allocations: 1.438 kB / 0.9547 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002277/0.5221, allocations: 146.3 kB / 0.9548 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=14): time 1.963e-06/0.5221, allocations: 3.984 kB / 0.9548 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of matching and sorting (n=14): time 0.0004613/0.5226, allocations: 196 kB / 0.955 GB, free: 4.312 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.736e-05/0.5226, allocations: 125.2 kB / 0.9551 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.5228, allocations: 188.8 kB / 0.9553 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.5228, allocations: 35.27 kB / 0.9553 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.85e-05/0.5229, allocations: 131.5 kB / 0.9555 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.511e-05/0.5229, allocations: 37.11 kB / 0.9555 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001002/0.523, allocations: 63 kB / 0.9556 GB, free: 3.793 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.769e-05/0.5231, allocations: 327.6 kB / 0.9559 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.5233, allocations: 94.09 kB / 0.956 GB, free: 3.422 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.5235, allocations: 158.7 kB / 0.9561 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000298/0.5238, allocations: 226.1 kB / 0.9563 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.5238, allocations: 1.344 kB / 0.9563 GB, free: 3.105 MB / 0.7169 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005496/0.5244, allocations: 347.8 kB / 0.9567 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.918e-05/0.5244, allocations: 63.38 kB / 0.9567 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.5244, allocations: 5.828 kB / 0.9567 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.5244, allocations: 7.75 kB / 0.9567 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.164e-05/0.5245, allocations: 19.67 kB / 0.9568 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.5245, allocations: 9.781 kB / 0.9568 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003483/0.5249, allocations: 69.75 kB / 0.9568 GB, free: 2.77 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.169e-05/0.5249, allocations: 14.8 kB / 0.9568 GB, free: 2.766 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 8.724e-05/0.525, allocations: 141.4 kB / 0.957 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.671e-05/0.525, allocations: 15.03 kB / 0.957 GB, free: 2.625 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002199/0.5253, allocations: 103.1 kB / 0.9571 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.5253, allocations: 2.719 kB / 0.9571 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.5253, allocations: 3.938 kB / 0.9571 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.5253, allocations: 1.688 kB / 0.9571 GB, free: 2.547 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001327/0.5254, allocations: 233.1 kB / 0.9573 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.5254, allocations: 1.75 kB / 0.9573 GB, free: 2.301 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.656e-05/0.5255, allocations: 22.86 kB / 0.9573 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.494e-06/0.5255, allocations: 1.906 kB / 0.9573 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.069e-05/0.5255, allocations: 1.75 kB / 0.9573 GB, free: 2.289 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.5256, allocations: 5.766 kB / 0.9574 GB, free: 2.285 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.5256, allocations: 3.938 kB / 0.9574 GB, free: 2.281 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002824/0.5258, allocations: 193.2 kB / 0.9575 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.656e-05/0.5259, allocations: 98.3 kB / 0.9576 GB, free: 2.031 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.832e-05/0.5259, allocations: 6.75 kB / 0.9576 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.925e-05/0.526, allocations: 13.48 kB / 0.9577 GB, free: 2.02 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.446e-05/0.5261, allocations: 30.89 kB / 0.9577 GB, free: 2 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.146e-05/0.5261, allocations: 8.109 kB / 0.9577 GB, free: 1.996 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 7.764e-05/0.5262, allocations: 143.6 kB / 0.9578 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5262, allocations: 1.375 kB / 0.9578 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000252/0.5264, allocations: 46.48 kB / 0.9579 GB, free: 1.879 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.0004505/0.5269, allocations: 0.7372 MB / 0.9586 GB, free: 1.203 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0004373/0.5273, allocations: 322.5 kB / 0.9589 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.5274, allocations: 0 / 0.9589 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000152/0.5275, allocations: 66.55 kB / 0.959 GB, free: 0.9492 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.5278, allocations: 40.94 kB / 0.959 GB, free: 0.9297 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002503/0.5303, allocations: 2.327 MB / 0.9613 GB, free: 15.05 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/0.5305, allocations: 0.7247 MB / 0.962 GB, free: 14.33 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001079/0.5307, allocations: 26.75 kB / 0.962 GB, free: 14.31 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.317e-05/0.5307, allocations: 58.88 kB / 0.9621 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.5307, allocations: 0 / 0.9621 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.124/1.655, allocations: 4.541 MB / 0.9665 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000254/1.655, allocations: 209.5 kB / 0.9667 GB, free: 11.79 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.056/3.711, allocations: 0 / 0.9667 GB, free: 11.79 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