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: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|hysteresis.u|hysteresis.y|hysteresis1.u|hysteresis1.y|hysteresis2.u|hysteresis2.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009533/0.009532, allocations: 108.3 kB / 15.74 MB, free: 6.055 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.001677/0.001678, allocations: 198.1 kB / 16.68 MB, free: 5.965 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.497/1.497, allocations: 222.9 MB / 240.3 MB, free: 15.15 MB / 206.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.402/2.402, allocations: 390.2 MB / 0.6648 GB, free: 0.6016 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001373/0.001373, allocations: 63.89 kB / 0.9509 GB, free: 7.559 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.175/1.176, allocations: 140.4 MB / 1.088 GB, free: 5.504 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis): time 0.002672/1.179, allocations: 1.016 MB / 1.089 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002016/1.181, allocations: 1.31 MB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001064/1.181, allocations: 1.031 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.806e-05/1.181, allocations: 14.72 kB / 1.09 GB, free: 3.855 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001435/1.181, allocations: 35.72 kB / 1.09 GB, free: 3.828 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008772/1.182, allocations: 267.3 kB / 1.091 GB, free: 3.688 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0006659/1.183, allocations: 346.1 kB / 1.091 GB, free: 3.523 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002338/1.183, allocations: 42.52 kB / 1.091 GB, free: 3.504 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002702/1.183, allocations: 125.5 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/1.184, allocations: 118.8 kB / 1.091 GB, free: 3.391 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 9.317e-05/1.184, allocations: 35.75 kB / 1.091 GB, free: 3.387 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001759/1.184, allocations: 46.66 kB / 1.091 GB, free: 3.383 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 7.346e-05/1.184, allocations: 40.66 kB / 1.091 GB, free: 3.355 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002351/1.184, allocations: 121.7 kB / 1.091 GB, free: 3.281 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008717/1.185, allocations: 341 kB / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 1.015e-05/1.185, allocations: 0 / 1.092 GB, free: 3.16 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.114e-06/1.185, allocations: 4.656 kB / 1.092 GB, free: 3.156 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.206e-05/1.185, allocations: 0.5625 kB / 1.092 GB, free: 3.156 MB / 0.8575 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.001423/1.187, allocations: 0.5547 MB / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 6.613e-05/1.187, allocations: 9.438 kB / 1.092 GB, free: 2.656 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001266/1.187, allocations: 27.64 kB / 1.092 GB, free: 2.645 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009769/1.188, allocations: 310.2 kB / 1.093 GB, free: 2.398 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.521e-05/1.188, allocations: 16.7 kB / 1.093 GB, free: 2.391 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.676e-05/1.188, allocations: 19.42 kB / 1.093 GB, free: 2.387 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004321/1.188, allocations: 136 kB / 1.093 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/1.188, allocations: 3.938 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.468e-05/1.189, allocations: 2.156 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.198e-05/1.189, allocations: 2.312 kB / 1.093 GB, free: 2.297 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003191/1.189, allocations: 78.22 kB / 1.093 GB, free: 2.273 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/1.19, allocations: 0.6416 MB / 1.093 GB, free: 1.734 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004816/1.19, allocations: 136.5 kB / 1.094 GB, free: 1.637 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/1.191, allocations: 54.78 kB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-05/1.191, allocations: 1.594 kB / 1.094 GB, free: 1.602 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000524/1.191, allocations: 146 kB / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=14): time 1.493e-06/1.191, allocations: 0 / 1.094 GB, free: 1.504 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14): time 0.0007726/1.192, allocations: 202.8 kB / 1.094 GB, free: 1.422 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.921e-05/1.192, allocations: 106.5 kB / 1.094 GB, free: 1.297 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003023/1.192, allocations: 202.7 kB / 1.094 GB, free: 1.156 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/1.193, allocations: 36.42 kB / 1.094 GB, free: 1.121 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001244/1.193, allocations: 125.2 kB / 1.094 GB, free: 1.012 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.464e-05/1.193, allocations: 44.73 kB / 1.094 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/1.193, allocations: 59.86 kB / 1.095 GB, free: 0.9492 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001121/1.193, allocations: 329 kB / 1.095 GB, free: 0.6289 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003166/1.193, allocations: 90.52 kB / 1.095 GB, free: 0.6016 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003575/1.194, allocations: 161.2 kB / 1.095 GB, free: 496 kB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005261/1.194, allocations: 227.2 kB / 1.095 GB, free: 320 kB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/1.194, allocations: 4.875 kB / 1.095 GB, free: 316 kB / 0.8575 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0009793/1.195, allocations: 341.9 kB / 1.096 GB, free: 136 kB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 8.638e-05/1.195, allocations: 68.05 kB / 1.096 GB, free: 68 kB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/1.195, allocations: 6.359 kB / 1.096 GB, free: 64 kB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.124e-05/1.195, allocations: 2.688 kB / 1.096 GB, free: 64 kB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001495/1.196, allocations: 27.52 kB / 1.096 GB, free: 52 kB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.096e-05/1.196, allocations: 7.453 kB / 1.096 GB, free: 48 kB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004892/1.196, allocations: 64.48 kB / 1.096 GB, free: 40 kB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.842e-05/1.196, allocations: 22.27 kB / 1.096 GB, free: 32 kB / 0.8575 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.0002106/1.196, allocations: 139.6 kB / 1.096 GB, free: 15.9 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.653e-05/1.196, allocations: 15.86 kB / 1.096 GB, free: 15.89 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003352/1.197, allocations: 91.61 kB / 1.096 GB, free: 15.85 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/1.197, allocations: 5.875 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.429e-05/1.197, allocations: 9.031 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/1.197, allocations: 1.594 kB / 1.096 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000364/1.197, allocations: 234.4 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/1.197, allocations: 0.625 kB / 1.096 GB, free: 15.62 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.229e-05/1.197, allocations: 19.17 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.659e-06/1.197, allocations: 1.094 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.864e-05/1.197, allocations: 3.969 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.918e-06/1.197, allocations: 1.781 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/1.197, allocations: 5.656 kB / 1.096 GB, free: 15.61 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004737/1.198, allocations: 198.4 kB / 1.097 GB, free: 15.48 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 8.489e-05/1.198, allocations: 95.39 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.903e-05/1.198, allocations: 4.047 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001212/1.198, allocations: 14.03 kB / 1.097 GB, free: 15.38 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001091/1.198, allocations: 36.73 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/1.198, allocations: 7.141 kB / 1.097 GB, free: 15.36 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0001757/1.198, allocations: 142.6 kB / 1.097 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.2e-07/1.198, allocations: 1.406 kB / 1.097 GB, free: 15.26 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0003805/1.199, allocations: 45.72 kB / 1.097 GB, free: 15.25 MB / 0.8731 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.000258/1.199, allocations: 114.5 kB / 1.097 GB, free: 15.16 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0007276/1.2, allocations: 325.5 kB / 1.097 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/1.2, allocations: 1.312 kB / 1.097 GB, free: 14.95 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0002174/1.2, allocations: 66.52 kB / 1.097 GB, free: 14.93 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003626/1.2, allocations: 48.08 kB / 1.097 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006665/1.201, allocations: 286.4 kB / 1.098 GB, free: 14.71 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003598/1.201, allocations: 0.7223 MB / 1.098 GB, free: 14.01 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001207/1.202, allocations: 28.08 kB / 1.098 GB, free: 14 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.496e-05/1.202, allocations: 25.64 kB / 1.098 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of SimCode: time 2.1e-07/1.202, allocations: 0 / 1.098 GB, free: 13.99 MB / 0.8731 GB Notification: Performance of Templates: time 0.00947/1.211, allocations: 3.283 MB / 1.102 GB, free: 13.72 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.makefile (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 & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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