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.001537/0.001537, allocations: 80.41 kB / 20.23 MB, free: 4.199 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.001574/0.001574, allocations: 161.7 kB / 23.55 MB, free: 0.8906 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 1.516/1.516, allocations: 177.1 MB / 203.9 MB, free: 5.57 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.773/2.773, allocations: 359 MB / 0.6048 GB, free: 10.93 MB / 0.573 GB " [Timeout remaining time 176] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-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: 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_11_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_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.074e-06/2.074e-06, allocations: 0 / 0.7864 GB, free: 12.73 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.912e-05/4.12e-05, allocations: 5.688 kB / 0.7864 GB, free: 12.72 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze): time 0.004527/0.004569, allocations: 2.069 MB / 0.7885 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.00145/0.006019, allocations: 0.5622 MB / 0.789 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001944/0.006213, allocations: 4 kB / 0.789 GB, free: 10.09 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.006403, allocations: 28.3 kB / 0.789 GB, free: 10.06 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001401/0.006543, allocations: 37.06 kB / 0.7891 GB, free: 10.03 MB / 0.7448 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003743/0.006917, allocations: 95.75 kB / 0.7892 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0004462/0.007363, allocations: 264.1 kB / 0.7894 GB, free: 9.676 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002713/0.007635, allocations: 83.58 kB / 0.7895 GB, free: 9.594 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002992/0.007934, allocations: 156.3 kB / 0.7896 GB, free: 9.441 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00018/0.008114, allocations: 96.36 kB / 0.7897 GB, free: 9.348 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 6.072e-05/0.008174, allocations: 24 kB / 0.7898 GB, free: 9.324 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 6.112e-05/0.008236, allocations: 28.91 kB / 0.7898 GB, free: 9.297 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 8.047e-05/0.008316, allocations: 55.81 kB / 0.7898 GB, free: 9.242 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.008452, allocations: 76.47 kB / 0.7899 GB, free: 9.168 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.0004635/0.008916, allocations: 299 kB / 0.7902 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.008921, allocations: 1.25 kB / 0.7902 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.202e-06/0.008922, allocations: 0 / 0.7902 GB, free: 8.875 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.008932, allocations: 3.938 kB / 0.7902 GB, free: 8.871 MB / 0.7448 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.00144/0.01037, allocations: 0.5716 MB / 0.7908 GB, free: 8.25 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.01042, allocations: 11.47 kB / 0.7908 GB, free: 8.242 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001413/0.01056, allocations: 48.69 kB / 0.7908 GB, free: 8.195 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004435/0.011, allocations: 201.9 kB / 0.791 GB, free: 7.973 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.01104, allocations: 12.75 kB / 0.791 GB, free: 7.961 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.128e-05/0.01109, allocations: 24.38 kB / 0.7911 GB, free: 7.938 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007826/0.01187, allocations: 326.1 kB / 0.7914 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.01188, allocations: 0.9062 kB / 0.7914 GB, free: 7.594 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.693e-05/0.01192, allocations: 12.12 kB / 0.7914 GB, free: 7.582 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.01193, allocations: 5.656 kB / 0.7914 GB, free: 7.578 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007574/0.01268, allocations: 201 kB / 0.7916 GB, free: 7.383 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001284/0.01397, allocations: 498.3 kB / 0.792 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009397/0.01491, allocations: 213.2 kB / 0.7923 GB, free: 6.652 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003486/0.01526, allocations: 86.72 kB / 0.7923 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.588e-05/0.01528, allocations: 0 / 0.7923 GB, free: 6.566 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000568/0.01585, allocations: 192.4 kB / 0.7925 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=18): time 1.883e-06/0.01585, allocations: 1.344 kB / 0.7925 GB, free: 6.367 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18): time 0.001274/0.01713, allocations: 329.9 kB / 0.7928 GB, free: 6.043 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/0.01724, allocations: 118.8 kB / 0.7929 GB, free: 5.902 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002843/0.01752, allocations: 212.8 kB / 0.7931 GB, free: 5.688 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.166e-05/0.01757, allocations: 35.08 kB / 0.7932 GB, free: 5.648 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.01773, allocations: 156.4 kB / 0.7933 GB, free: 5.492 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 6.486e-05/0.0178, allocations: 47.64 kB / 0.7934 GB, free: 5.445 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001364/0.01794, allocations: 61.69 kB / 0.7934 GB, free: 5.379 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0002131/0.01815, allocations: 335.6 kB / 0.7938 GB, free: 5.043 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004705/0.01862, allocations: 198.2 kB / 0.7939 GB, free: 4.828 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005612/0.01918, allocations: 305.1 kB / 0.7942 GB, free: 4.477 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007893/0.01997, allocations: 317.4 kB / 0.7945 GB, free: 4.137 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.497e-06/0.01997, allocations: 0 / 0.7945 GB, free: 4.137 MB / 0.7448 GB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00117/0.02114, allocations: 0.5023 MB / 0.795 GB, free: 3.594 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 9.432e-05/0.02124, allocations: 93.59 kB / 0.7951 GB, free: 3.484 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.02125, allocations: 4 kB / 0.7951 GB, free: 3.48 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.469e-05/0.02127, allocations: 4.5 kB / 0.7951 GB, free: 3.477 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002526/0.02152, allocations: 56.64 kB / 0.7952 GB, free: 3.422 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.098e-05/0.02154, allocations: 5.219 kB / 0.7952 GB, free: 3.418 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003558/0.02189, allocations: 57.14 kB / 0.7952 GB, free: 3.363 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.542e-05/0.02194, allocations: 15.92 kB / 0.7953 GB, free: 3.348 MB / 0.7448 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.0002002/0.02214, allocations: 144.9 kB / 0.7954 GB, free: 3.199 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.0222, allocations: 27.91 kB / 0.7954 GB, free: 3.172 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008882/0.02309, allocations: 263.5 kB / 0.7957 GB, free: 2.91 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.557e-06/0.0231, allocations: 7.469 kB / 0.7957 GB, free: 2.906 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.0231, allocations: 0 / 0.7957 GB, free: 2.906 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.02311, allocations: 0 / 0.7957 GB, free: 2.906 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.02427, allocations: 0.4939 MB / 0.7962 GB, free: 2.375 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.02427, allocations: 0.9375 kB / 0.7962 GB, free: 2.375 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001802/0.02445, allocations: 36.97 kB / 0.7962 GB, free: 2.34 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.544e-06/0.02446, allocations: 3.984 kB / 0.7962 GB, free: 2.336 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.02448, allocations: 3.984 kB / 0.7962 GB, free: 2.332 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/0.02449, allocations: 5.094 kB / 0.7962 GB, free: 2.328 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.02449, allocations: 0 / 0.7962 GB, free: 2.328 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008995/0.02539, allocations: 355.6 kB / 0.7965 GB, free: 1.969 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 4.838e-05/0.02544, allocations: 19.84 kB / 0.7966 GB, free: 1.949 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.903e-05/0.02549, allocations: 8.5 kB / 0.7966 GB, free: 1.941 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.0258, allocations: 48.12 kB / 0.7966 GB, free: 1.895 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.02594, allocations: 43.86 kB / 0.7967 GB, free: 1.852 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/0.02597, allocations: 8 kB / 0.7967 GB, free: 1.844 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.000157/0.02613, allocations: 143.2 kB / 0.7968 GB, free: 1.703 MB / 0.7448 GB Notification: Performance of sort global known variables: time 6e-08/0.02613, allocations: 0 / 0.7968 GB, free: 1.703 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003539/0.02648, allocations: 55.89 kB / 0.7969 GB, free: 1.648 MB / 0.7448 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.0001896/0.02667, allocations: 113.2 kB / 0.797 GB, free: 1.531 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.001109/0.02778, allocations: 491 kB / 0.7974 GB, free: 0.9961 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.02778, allocations: 4 kB / 0.7974 GB, free: 0.9922 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0003877/0.02817, allocations: 104.2 kB / 0.7975 GB, free: 0.8906 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004286/0.0286, allocations: 43.89 kB / 0.7976 GB, free: 0.8477 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001026/0.02963, allocations: 378.8 kB / 0.7979 GB, free: 468 kB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001666/0.02979, allocations: 129.2 kB / 0.7981 GB, free: 316 kB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.0001168/0.02991, allocations: 17.64 kB / 0.7981 GB, free: 300 kB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001016/0.03001, allocations: 28.48 kB / 0.7981 GB, free: 272 kB / 0.7448 GB Notification: Performance of SimCode: time 1.162e-06/0.03001, allocations: 3.938 kB / 0.7981 GB, free: 268 kB / 0.7448 GB Notification: Performance of Templates: time 0.009125/0.03914, allocations: 3.419 MB / 0.8015 GB, free: 12.91 MB / 0.7605 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.makefile [Timeout 300] (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 & ./Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.AntiFreeze.pipe 2>&1) [Timeout 400] 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/jenkins/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: 8.105710137053393]