Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 99.64 kB / 18.94 MB, free: 2.551 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002157/0.002157, allocations: 211.3 kB / 22.24 MB, free: 4.859 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.445/1.445, allocations: 230.6 MB / 256 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.697/2.697, allocations: 476 MB / 0.7699 GB, free: 4.723 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,fileNamePrefix="Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002065/0.002065, allocations: 68.09 kB / 1.117 GB, free: 41.11 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.306/0.3081, allocations: 170 MB / 1.283 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.003488/0.3116, allocations: 2.057 MB / 1.285 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.00109/0.3127, allocations: 0.5689 MB / 1.285 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001227/0.3128, allocations: 4 kB / 1.285 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.3129, allocations: 23.67 kB / 1.285 GB, free: 9.719 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001015/0.313, allocations: 43.64 kB / 1.285 GB, free: 9.676 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002655/0.3133, allocations: 87.83 kB / 1.285 GB, free: 9.59 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003229/0.3136, allocations: 267.3 kB / 1.286 GB, free: 9.328 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002433/0.3139, allocations: 75.61 kB / 1.286 GB, free: 9.25 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001548/0.314, allocations: 123.5 kB / 1.286 GB, free: 9.129 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001555/0.3142, allocations: 99.52 kB / 1.286 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 5.11e-05/0.3142, allocations: 28 kB / 1.286 GB, free: 9.004 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 4.27e-05/0.3143, allocations: 24 kB / 1.286 GB, free: 8.98 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 6.217e-05/0.3143, allocations: 55.83 kB / 1.286 GB, free: 8.926 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.3144, allocations: 91.58 kB / 1.286 GB, free: 8.836 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0003405/0.3148, allocations: 290.3 kB / 1.286 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.3148, allocations: 0 / 1.286 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of FrontEnd: time 3.777e-06/0.3148, allocations: 7.984 kB / 1.286 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.3148, allocations: 0 / 1.286 GB, free: 8.547 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001162/0.316, allocations: 0.5772 MB / 1.287 GB, free: 7.918 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.316, allocations: 8.031 kB / 1.287 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.295e-05/0.3161, allocations: 59.16 kB / 1.287 GB, free: 7.844 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.729e-05/0.3162, allocations: 28.8 kB / 1.287 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003501/0.3165, allocations: 194.8 kB / 1.287 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.3165, allocations: 20.8 kB / 1.287 GB, free: 7.582 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.127e-05/0.3166, allocations: 20.38 kB / 1.287 GB, free: 7.562 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006793/0.3173, allocations: 329.9 kB / 1.288 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.3173, allocations: 0 / 1.288 GB, free: 7.215 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.988e-05/0.3173, allocations: 12 kB / 1.288 GB, free: 7.203 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.3173, allocations: 4 kB / 1.288 GB, free: 7.199 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00069/0.318, allocations: 201.6 kB / 1.288 GB, free: 7.004 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.3191, allocations: 0.5328 MB / 1.288 GB, free: 6.422 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008243/0.32, allocations: 218.4 kB / 1.288 GB, free: 6.199 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003043/0.3203, allocations: 88.78 kB / 1.289 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.947e-05/0.3203, allocations: 0 / 1.289 GB, free: 6.109 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005072/0.3208, allocations: 196.9 kB / 1.289 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=18): time 1.543e-06/0.3208, allocations: 0 / 1.289 GB, free: 5.906 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18): time 0.001094/0.3219, allocations: 333.2 kB / 1.289 GB, free: 5.574 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.611e-05/0.322, allocations: 114.7 kB / 1.289 GB, free: 5.438 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002111/0.3222, allocations: 212.9 kB / 1.289 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 4.102e-05/0.3222, allocations: 37.7 kB / 1.289 GB, free: 5.18 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.3223, allocations: 152.4 kB / 1.29 GB, free: 5.027 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 5.241e-05/0.3224, allocations: 55.61 kB / 1.29 GB, free: 4.973 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001112/0.3225, allocations: 65.66 kB / 1.29 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.3227, allocations: 334.8 kB / 1.29 GB, free: 4.566 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004106/0.3231, allocations: 189.3 kB / 1.29 GB, free: 4.363 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004847/0.3235, allocations: 316.2 kB / 1.29 GB, free: 4 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006923/0.3242, allocations: 311.7 kB / 1.291 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3242, allocations: 0 / 1.291 GB, free: 3.66 MB / 0.9825 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.000984/0.3252, allocations: 0.4976 MB / 1.291 GB, free: 3.121 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 8.218e-05/0.3253, allocations: 100.3 kB / 1.291 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.3253, allocations: 0 / 1.291 GB, free: 3.008 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.3253, allocations: 4.156 kB / 1.291 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000246/0.3256, allocations: 47.89 kB / 1.291 GB, free: 2.957 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.3256, allocations: 4 kB / 1.291 GB, free: 2.953 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003093/0.3259, allocations: 55.83 kB / 1.291 GB, free: 2.898 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.557e-05/0.3259, allocations: 12 kB / 1.291 GB, free: 2.887 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 25 (antFre.disErr.y,$PRE.antFre.disErr.y,TEvaOutEmu.count,$PRE.TEvaOutEmu.count,TEvaOutEmu.T_start,$PRE.TEvaOutEmu.T_start,TConInEmu.count,$PRE.TConInEmu.count,TConInEmu.T_start,$PRE.TConInEmu.T_start,ySetPul.count,$PRE.ySetPul.count,ySetPul.T_start,$PRE.ySetPul.T_start,antFre.hys.y,$PRE.antFre.hys.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,antFre.intConOne.y,antFre.disErr.local_set,antFre.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 3 * 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.0001806/0.3261, allocations: 156.3 kB / 1.292 GB, free: 2.727 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.983e-05/0.3261, allocations: 27.78 kB / 1.292 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000779/0.3269, allocations: 255.3 kB / 1.292 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3269, allocations: 0 / 1.292 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.3269, allocations: 0 / 1.292 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.178e-06/0.3269, allocations: 0 / 1.292 GB, free: 2.445 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.3279, allocations: 0.5402 MB / 1.292 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.3279, allocations: 0 / 1.292 GB, free: 1.855 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001591/0.3281, allocations: 31.95 kB / 1.292 GB, free: 1.824 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.703e-06/0.3281, allocations: 8 kB / 1.292 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.814e-05/0.3281, allocations: 7.984 kB / 1.292 GB, free: 1.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.3281, allocations: 0 / 1.292 GB, free: 1.809 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.3281, allocations: 3.938 kB / 1.292 GB, free: 1.805 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007756/0.3289, allocations: 352.9 kB / 1.293 GB, free: 1.445 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.3289, allocations: 19.91 kB / 1.293 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.425e-05/0.329, allocations: 4 kB / 1.293 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002969/0.3293, allocations: 47.94 kB / 1.293 GB, free: 1.375 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001123/0.3294, allocations: 43.92 kB / 1.293 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.3294, allocations: 4 kB / 1.293 GB, free: 1.328 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001324/0.3296, allocations: 143.3 kB / 1.293 GB, free: 1.188 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3296, allocations: 0 / 1.293 GB, free: 1.188 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003172/0.3299, allocations: 55.89 kB / 1.293 GB, free: 1.133 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 6 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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.001464/0.3313, allocations: 1.011 MB / 1.294 GB, free: 96 kB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0009564/0.3323, allocations: 493.3 kB / 1.295 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.3323, allocations: 0 / 1.295 GB, free: 15.56 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003499/0.3326, allocations: 103.9 kB / 1.295 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000362/0.333, allocations: 40.22 kB / 1.295 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004336/0.3373, allocations: 2.91 MB / 1.298 GB, free: 12.31 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001357/0.3375, allocations: 129.8 kB / 1.298 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001127/0.3376, allocations: 29.61 kB / 1.298 GB, free: 12.13 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.3377, allocations: 71.41 kB / 1.298 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of SimCode: time 6.42e-07/0.3377, allocations: 0 / 1.298 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.3709, allocations: 6.099 MB / 1.304 GB, free: 6.152 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.29/11.66, allocations: 2.5 kB / 1.304 GB, free: 6.152 MB / 0.9981 GB " [Timeout remaining time 288] (rm -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze_fmu --startTime=0 --stopTime=100 --stepSize=1 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.fmu > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 17.94304139399901]