Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.000815/0.000815, allocations: 80.48 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0008629/0.0008629, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8767/0.8767, allocations: 177.1 MB / 203.5 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.68/1.68, allocations: 377.8 MB / 0.6228 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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: translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") translateModel(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze,tolerance=1e-08,outputFormat="mat",numberOfIntervals=100,variableFilter="time|ySet|yOut|antFre.sigBus.TConInMea|antFre.sigBus.TEvaOutMea|antFre.TAntFre",fileNamePrefix="Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 0.9822 GB, free: 2.027 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.719e-05/1.858e-05, allocations: 5.234 kB / 0.9822 GB, free: 2.023 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.002425/0.002444, allocations: 2.13 MB / 0.9843 GB, free: 15.88 MB / 0.948 GB Notification: Performance of NFInst.instExpressions: time 0.0007177/0.003162, allocations: 0.5921 MB / 0.9849 GB, free: 15.29 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.791e-05/0.003259, allocations: 3.938 kB / 0.9849 GB, free: 15.28 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.003361, allocations: 23.67 kB / 0.9849 GB, free: 15.26 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 7.609e-05/0.003437, allocations: 59.5 kB / 0.985 GB, free: 15.2 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.003652, allocations: 95.88 kB / 0.9851 GB, free: 15.11 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0002351/0.003887, allocations: 299.2 kB / 0.9854 GB, free: 14.81 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001905/0.004077, allocations: 95.62 kB / 0.9855 GB, free: 14.72 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.004227, allocations: 179.5 kB / 0.9856 GB, free: 14.54 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.004328, allocations: 99.72 kB / 0.9857 GB, free: 14.45 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 3.825e-05/0.004367, allocations: 32 kB / 0.9858 GB, free: 14.41 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 2.668e-05/0.004393, allocations: 32 kB / 0.9858 GB, free: 14.38 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 4.69e-05/0.00444, allocations: 71.73 kB / 0.9858 GB, free: 14.31 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 6.85e-05/0.004509, allocations: 87.73 kB / 0.9859 GB, free: 14.23 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.004771, allocations: 339 kB / 0.9863 GB, free: 13.89 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.004773, allocations: 7.938 kB / 0.9863 GB, free: 13.89 MB / 0.948 GB Notification: Performance of FrontEnd: time 8.62e-07/0.004774, allocations: 0 / 0.9863 GB, free: 13.89 MB / 0.948 GB Notification: Performance of Transformations before backend: time 3.727e-06/0.004778, allocations: 0 / 0.9863 GB, free: 13.89 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000758/0.005536, allocations: 0.6007 MB / 0.9869 GB, free: 13.24 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.078e-05/0.005566, allocations: 12.03 kB / 0.9869 GB, free: 13.23 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.442e-05/0.005621, allocations: 32.75 kB / 0.9869 GB, free: 13.2 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002367/0.005858, allocations: 205.9 kB / 0.9871 GB, free: 12.97 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.944e-05/0.005877, allocations: 16.88 kB / 0.9871 GB, free: 12.95 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.808e-05/0.005905, allocations: 32.31 kB / 0.9871 GB, free: 12.92 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004111/0.006316, allocations: 378 kB / 0.9875 GB, free: 12.52 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.006326, allocations: 4.188 kB / 0.9875 GB, free: 12.52 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.006346, allocations: 12.12 kB / 0.9875 GB, free: 12.5 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.041e-06/0.006352, allocations: 4 kB / 0.9875 GB, free: 12.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003732/0.006726, allocations: 213.8 kB / 0.9877 GB, free: 12.29 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006956/0.007421, allocations: 0.5375 MB / 0.9882 GB, free: 11.72 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003617/0.007783, allocations: 194.4 kB / 0.9884 GB, free: 11.52 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00016/0.007943, allocations: 96.78 kB / 0.9885 GB, free: 11.42 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.871e-05/0.007961, allocations: 0 / 0.9885 GB, free: 11.42 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.008257, allocations: 197.5 kB / 0.9887 GB, free: 11.22 MB / 0.948 GB Notification: Performance of pre-optimization done (n=20): time 1.052e-06/0.008258, allocations: 0 / 0.9887 GB, free: 11.22 MB / 0.948 GB Notification: Performance of matching and sorting (n=20): time 0.0008289/0.009087, allocations: 349.2 kB / 0.989 GB, free: 10.87 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.491e-05/0.009142, allocations: 136.5 kB / 0.9892 GB, free: 10.71 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001422/0.009284, allocations: 231.7 kB / 0.9894 GB, free: 10.47 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.009312, allocations: 41.69 kB / 0.9894 GB, free: 10.43 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 8.215e-05/0.009394, allocations: 164.3 kB / 0.9896 GB, free: 10.26 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 3.077e-05/0.009425, allocations: 51.64 kB / 0.9896 GB, free: 10.21 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.457e-05/0.009499, allocations: 81.84 kB / 0.9897 GB, free: 10.12 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.906e-05/0.009578, allocations: 326.8 kB / 0.99 GB, free: 9.797 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004697/0.01005, allocations: 205.3 kB / 0.9902 GB, free: 9.578 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002707/0.01032, allocations: 346.4 kB / 0.9906 GB, free: 9.176 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003618/0.01068, allocations: 323 kB / 0.9909 GB, free: 8.824 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.345e-06/0.01068, allocations: 0 / 0.9909 GB, free: 8.824 MB / 0.948 GB Notification: Performance of matching and sorting (n=37) (initialization): time 0.000533/0.01122, allocations: 0.5123 MB / 0.9914 GB, free: 8.27 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 4.077e-05/0.01126, allocations: 96.22 kB / 0.9915 GB, free: 8.16 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.01126, allocations: 0 / 0.9915 GB, free: 8.16 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.01127, allocations: 8.156 kB / 0.9915 GB, free: 8.152 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001242/0.0114, allocations: 47.89 kB / 0.9915 GB, free: 8.105 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.823e-06/0.01141, allocations: 7.938 kB / 0.9915 GB, free: 8.098 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001605/0.01157, allocations: 67.72 kB / 0.9916 GB, free: 8.031 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.731e-05/0.01158, allocations: 19.92 kB / 0.9916 GB, free: 8.012 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 28 (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,antFre.errAndSetOn.y,antFre.ySetOn.y,$PRE.antFre.ySetOn.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 (34): * Single equations (assignments): 31 * 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.0001041/0.01169, allocations: 160.4 kB / 0.9918 GB, free: 7.844 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.066e-05/0.01171, allocations: 19.91 kB / 0.9918 GB, free: 7.824 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004235/0.01213, allocations: 273.6 kB / 0.992 GB, free: 7.551 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.01213, allocations: 4 kB / 0.992 GB, free: 7.547 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.01214, allocations: 7.938 kB / 0.992 GB, free: 7.539 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.01214, allocations: 3.984 kB / 0.9921 GB, free: 7.535 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005633/0.01271, allocations: 0.533 MB / 0.9926 GB, free: 6.965 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.01271, allocations: 0 / 0.9926 GB, free: 6.965 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.076e-05/0.01278, allocations: 23.97 kB / 0.9926 GB, free: 6.941 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.01278, allocations: 8 kB / 0.9926 GB, free: 6.934 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.0128, allocations: 11.92 kB / 0.9926 GB, free: 6.922 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.094e-06/0.0128, allocations: 0 / 0.9926 GB, free: 6.922 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.0128, allocations: 0 / 0.9926 GB, free: 6.922 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003892/0.01319, allocations: 365.3 kB / 0.993 GB, free: 6.551 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 1.881e-05/0.01321, allocations: 19.84 kB / 0.993 GB, free: 6.531 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.882e-05/0.01324, allocations: 19.94 kB / 0.993 GB, free: 6.512 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001449/0.01338, allocations: 51.92 kB / 0.993 GB, free: 6.461 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.574e-05/0.01347, allocations: 47.92 kB / 0.9931 GB, free: 6.414 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.71e-05/0.01348, allocations: 7.984 kB / 0.9931 GB, free: 6.406 MB / 0.948 GB Notification: Performance of sorting global known variables: time 8.312e-05/0.01357, allocations: 156.6 kB / 0.9933 GB, free: 6.254 MB / 0.948 GB Notification: Performance of sort global known variables: time 5e-08/0.01357, allocations: 0 / 0.9933 GB, free: 6.254 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.0002009/0.01377, allocations: 63.84 kB / 0.9933 GB, free: 6.191 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 (antFre.errAndSetOn.y,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,antFre.disErr.y,antFre.ySetOn.y,antFre.hys.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count) * Number of discrete states: 7 (TEvaOutEmu.count,TConInEmu.count,ySetPul.count,antFre.hys.y,antFre.ySetOn.y,hys.y,antFre.disErr.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 13 * 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 8.172e-05/0.01385, allocations: 119.2 kB / 0.9934 GB, free: 6.066 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.000519/0.01437, allocations: 0.4919 MB / 0.9939 GB, free: 5.52 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.393e-06/0.01437, allocations: 4.062 kB / 0.9939 GB, free: 5.516 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.01455, allocations: 111.8 kB / 0.994 GB, free: 5.406 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002392/0.01479, allocations: 43.84 kB / 0.9941 GB, free: 5.363 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005319/0.01533, allocations: 419.5 kB / 0.9945 GB, free: 4.926 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.601e-05/0.0154, allocations: 126.2 kB / 0.9946 GB, free: 4.785 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.287e-05/0.01547, allocations: 32.48 kB / 0.9946 GB, free: 4.75 MB / 0.948 GB Notification: Performance of SimCode: time 5.61e-07/0.01547, allocations: 4 kB / 0.9946 GB, free: 4.746 MB / 0.948 GB Notification: Performance of Templates: time 0.003352/0.01883, allocations: 3.266 MB / 0.9978 GB, free: 1.484 MB / 0.948 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; mkfifo Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe >> ../files/Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.sim & ./Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_AntiFreeze.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 6.549724048934877]