Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.Safety.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "[:1:22-1:33:writable] Warning: Modelica only supports 32-bit signed integers! Transforming: 13743895347 into a real [:1:1-1:33:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0004897/0.0004897, allocations: 0 / 0, free: 0 / 0 " [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.0005606/0.0005606, allocations: 0 / 0, free: 0 / 0 " [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.4295/0.4295, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 1.018/1.018, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 178] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: simulate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.Safety,startTime=0,stopTime=100,tolerance=1e-08,numberOfIntervals=100,outputFormat="mat",variableFilter="time|ySet|yOut|safCtr.minFlowErr|safCtr.opeEnvErr|safCtr.antFreErr",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.Safety",simflags="-alarm=800 -emit_protected -lv LOG_STATS") simulate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.Safety,startTime=0,stopTime=100,tolerance=1e-08,numberOfIntervals=100,outputFormat="mat",variableFilter="time|ySet|yOut|safCtr.minFlowErr|safCtr.opeEnvErr|safCtr.antFreErr",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.Safety",simflags="-alarm=800 -emit_protected -lv LOG_STATS") [Timeout 1100] "Notification: Performance of FrontEnd - loaded program: time 1.012e-06/1.012e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.625e-05/2.726e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.Safety): time 0.01501/0.01504, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.01054/0.02558, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.02693, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.001913/0.02884, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.002368/0.03121, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.002506/0.03371, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.003048/0.03676, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.002053/0.03881, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.003015/0.04183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.001966/0.04379, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0004694/0.04426, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0006915/0.04496, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.00103/0.04599, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.001614/0.0476, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.006533/0.05413, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0003862/0.05452, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 3.626e-06/0.05452, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 2.28e-05/0.05454, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 207 * Number of variables: 207 Notification: Performance of Generate backend data structure: time 0.01087/0.06542, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001541/0.06557, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00221/0.06778, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.006149/0.07393, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000216/0.07415, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005338/0.07468, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.007531/0.08221, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 8.274e-05/0.0823, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003721/0.08267, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-05/0.08273, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00589/0.08862, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01398/0.1026, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.004179/0.1068, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.002061/0.1088, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 7.132e-05/0.1089, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003064/0.112, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=62): time 0.0001771/0.1122, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=62): time 0.007622/0.1198, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002735/0.12, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005588/0.1256, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0005568/0.1262, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.001408/0.1276, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0004469/0.128, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.001339/0.1294, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.0004318/0.1298, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.002817/0.1326, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.003612/0.1362, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.004343/0.1406, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.027e-05/0.1406, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=108) (initialization): time 0.008011/0.1486, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002622/0.1489, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.442e-05/0.1489, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 4.61e-05/0.149, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001219/0.1502, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.396e-05/0.1502, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00179/0.152, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003108/0.1523, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 83 (safCtr.opeEnv.disErr.y,$PRE.safCtr.opeEnv.disErr.y,safCtr.antFre.disErr.y,$PRE.safCtr.antFre.disErr.y,safCtr.minVolFloRatSaf.disErr.y,$PRE.safCtr.minVolFloRatSaf.disErr.y,mEvaEmu_flow.count,$PRE.mEvaEmu_flow.count,mEvaEmu_flow.T_start,$PRE.mEvaEmu_flow.T_start,mConEmu_flow.count,$PRE.mConEmu_flow.count,mConEmu_flow.T_start,$PRE.mConEmu_flow.T_start,TEvaInEmu.count,$PRE.TEvaInEmu.count,TEvaInEmu.T_start,$PRE.TEvaInEmu.T_start,TConOutEmu.count,$PRE.TConOutEmu.count,TConOutEmu.T_start,$PRE.TConOutEmu.T_start,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,safCtr.andCanOpe.y,safCtr.andCanOpe.u[3],safCtr.andCanOpe.u[1],safCtr.ySetOn.y,$PRE.safCtr.ySetOn.y,safCtr.minVolFloRatSaf.hysEva.y,$PRE.safCtr.minVolFloRatSaf.hysEva.y,safCtr.minVolFloRatSaf.hysCon.y,$PRE.safCtr.minVolFloRatSaf.hysCon.y,safCtr.minVolFloRatSaf.errAndSetOn.y,safCtr.antFre.hys.y,$PRE.safCtr.antFre.hys.y,safCtr.antFre.errAndSetOn.y,safCtr.opeEnv.bouMapCoo.hysBou.y,$PRE.safCtr.opeEnv.bouMapCoo.hysBou.y,safCtr.opeEnv.bouMapCoo.hysRig.y,$PRE.safCtr.opeEnv.bouMapCoo.hysRig.y,safCtr.opeEnv.bouMapCoo.hysLef.y,$PRE.safCtr.opeEnv.bouMapCoo.hysLef.y,safCtr.opeEnv.bouMapCoo.noErr,safCtr.opeEnv.bouMapHea.hysBou.y,$PRE.safCtr.opeEnv.bouMapHea.hysBou.y,safCtr.opeEnv.bouMapHea.hysRig.y,$PRE.safCtr.opeEnv.bouMapHea.hysRig.y,safCtr.opeEnv.bouMapHea.hysLef.y,$PRE.safCtr.opeEnv.bouMapHea.hysLef.y,safCtr.opeEnv.errAndSetOn.y,hys.y,$PRE.hys.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,conHea.y,safCtr.minVolFloRatSaf.intConOne.y,safCtr.minVolFloRatSaf.disErr.local_set,safCtr.minVolFloRatSaf.disErr.local_reset,safCtr.antFre.intConOne.y,safCtr.antFre.disErr.local_set,safCtr.antFre.disErr.local_reset,safCtr.opeEnv.intConOne.y,safCtr.opeEnv.disErr.local_set,safCtr.opeEnv.disErr.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 7 * 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.002246/0.1546, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008439/0.1554, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005864/0.1613, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.246e-05/0.1613, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.134e-05/0.1613, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.754e-05/0.1613, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01061/0.1719, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.091e-05/0.1719, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008674/0.1728, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 2.062e-05/0.1728, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002646/0.1731, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.602e-05/0.1731, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.077e-06/0.1731, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00573/0.1788, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.00129/0.1801, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000825/0.181, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001652/0.1826, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001916/0.1845, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002314/0.1848, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.003752/0.1885, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 7.075e-05/0.1886, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.002632/0.1912, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 45 (safCtr.opeEnv.errAndSetOn.y,safCtr.antFre.errAndSetOn.y,safCtr.minVolFloRatSaf.errAndSetOn.y,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,hys.y,safCtr.opeEnv.disErr.y,safCtr.opeEnv.bouMapHea.hysLef.y,safCtr.opeEnv.bouMapHea.hysRig.y,safCtr.opeEnv.bouMapHea.hysBou.y,safCtr.opeEnv.bouMapCoo.noErr,safCtr.opeEnv.bouMapCoo.hysLef.y,safCtr.opeEnv.bouMapCoo.hysRig.y,safCtr.opeEnv.bouMapCoo.hysBou.y,safCtr.antFre.disErr.y,safCtr.antFre.hys.y,safCtr.minVolFloRatSaf.disErr.y,safCtr.minVolFloRatSaf.hysCon.y,safCtr.minVolFloRatSaf.hysEva.y,safCtr.ySetOn.y,safCtr.andCanOpe.u[1],safCtr.andCanOpe.u[3],safCtr.andCanOpe.y,ySetPul.T_start,ySetPul.count,TConInEmu.T_start,TConInEmu.count,TEvaOutEmu.T_start,TEvaOutEmu.count,TConOutEmu.T_start,TConOutEmu.count,TEvaInEmu.T_start,TEvaInEmu.count,mConEmu_flow.T_start,mConEmu_flow.count,mEvaEmu_flow.T_start,mEvaEmu_flow.count) * Number of discrete states: 21 (ySetPul.count,TConInEmu.count,TEvaOutEmu.count,TConOutEmu.count,TEvaInEmu.count,mConEmu_flow.count,mEvaEmu_flow.count,safCtr.ySetOn.y,safCtr.minVolFloRatSaf.hysEva.y,safCtr.minVolFloRatSaf.hysCon.y,safCtr.minVolFloRatSaf.disErr.y,safCtr.antFre.hys.y,safCtr.antFre.disErr.y,safCtr.opeEnv.bouMapCoo.hysBou.y,safCtr.opeEnv.bouMapCoo.hysRig.y,safCtr.opeEnv.bouMapCoo.hysLef.y,safCtr.opeEnv.bouMapHea.hysBou.y,safCtr.opeEnv.bouMapHea.hysRig.y,safCtr.opeEnv.bouMapHea.hysLef.y,safCtr.opeEnv.disErr.y,hys.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0009774/0.1922, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.006006/0.1982, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 8.276e-06/0.1982, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.002477/0.2007, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004634/0.2053, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009807/0.2151, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001849/0.217, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.001181/0.2182, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00249/0.2206, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0005773/0.2212, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.007094/0.2283, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 1100] diffSimulationResults("Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.Safety_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_HeatPumps_ModularReversible_Controls_Safety_Examples_Safety.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.HeatPumps.ModularReversible.Controls.Safety.Examples.Safety.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: 2.987708554001074]