Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.FailsafeCondition.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.0003805/0.0003805, 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.0005004/0.0005004, 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.4204/0.4204, allocations: 0 / 0, free: 0 / 0 " [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 0.8633/0.8633, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 179] 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: simulate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.FailsafeCondition,startTime=0,stopTime=5000,tolerance=1e-06,numberOfIntervals=2500,outputFormat="mat",variableFilter="time|faiSafHea.TSupSet|faiSafHea.TPriSup|faiSafHea.TSecSup|faiSafHea.reset|faiSafHea.y1|faiSafCoo.TSupSet|faiSafCoo.TPriSup|faiSafCoo.TSecSup|faiSafCoo.reset|faiSafCoo.y1|faiSafCooPri.TSupSet|faiSafCooPri.TPriSup|faiSafCooPri.reset|faiSafCooPri.y1",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.FailsafeCondition",simflags="-alarm=400 -emit_protected -lv LOG_STATS") simulate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.FailsafeCondition,startTime=0,stopTime=5000,tolerance=1e-06,numberOfIntervals=2500,outputFormat="mat",variableFilter="time|faiSafHea.TSupSet|faiSafHea.TPriSup|faiSafHea.TSecSup|faiSafHea.reset|faiSafHea.y1|faiSafCoo.TSupSet|faiSafCoo.TPriSup|faiSafCoo.TSecSup|faiSafCoo.reset|faiSafCoo.y1|faiSafCooPri.TSupSet|faiSafCooPri.TPriSup|faiSafCooPri.reset|faiSafCooPri.y1",fileNamePrefix="Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.FailsafeCondition",simflags="-alarm=400 -emit_protected -lv LOG_STATS") [Timeout 700] "Notification: Performance of FrontEnd - loaded program: time 1.022e-06/1.022e-06, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - Absyn->SCode: time 2.324e-05/2.427e-05, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instantiate(Buildings.Templates.Plants.Controls.StagingRotation.Validation.FailsafeCondition): time 0.007425/0.007449, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.instExpressions: time 0.007159/0.01461, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFInst.updateImplicitVariability: time 0.0009603/0.01557, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeComponents: time 0.0008569/0.01643, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeBindings: time 0.0008537/0.01728, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFTyping.typeClassSections: time 0.002032/0.01931, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.flatten: time 0.001956/0.02127, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.resolveConnections: time 0.001312/0.02258, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFEvalConstants.evaluate: time 0.001994/0.02457, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFSimplifyModel.simplify: time 0.001024/0.0256, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFPackage.collectConstants: time 0.0002931/0.02589, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFFlatten.collectFunctions: time 0.0003472/0.02624, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFScalarize.scalarize: time 0.0004743/0.02671, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFVerifyModel.verify: time 0.0009393/0.02765, allocations: 0 / 0, free: 0 / 0 Notification: Performance of NFConvertDAE.convert: time 0.003301/0.03095, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd - DAE generated: time 0.0002065/0.03116, allocations: 0 / 0, free: 0 / 0 Notification: Performance of FrontEnd: time 1.994e-06/0.03116, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Transformations before backend: time 1.602e-05/0.03118, 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.005917/0.03709, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare preOptimizeDAE: time 0.0001084/0.0372, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001825/0.03903, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evaluateParameters (simulation): time 0.003474/0.0425, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001867/0.04269, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003927/0.04308, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt clockPartitioning (simulation): time 0.004343/0.04742, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt findStateOrder (simulation): time 4.196e-05/0.04747, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002621/0.04773, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.813e-05/0.04777, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003173/0.05094, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008296/0.05924, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt comSubExp (simulation): time 0.003141/0.06238, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt resolveLoops (simulation): time 0.001436/0.06381, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt evalFunc (simulation): time 4.696e-05/0.06386, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002575/0.06643, allocations: 0 / 0, free: 0 / 0 Notification: Performance of pre-optimization done (n=68): time 9.833e-05/0.06653, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=68): time 0.006345/0.07288, allocations: 0 / 0, free: 0 / 0 Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001221/0.073, allocations: 0 / 0, free: 0 / 0 Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.07461, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectPreVariables (initialization): time 0.0004203/0.07503, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialEqns (initialization): time 0.0005754/0.07561, allocations: 0 / 0, free: 0 / 0 Notification: Performance of collectInitialBindings (initialization): time 0.0003948/0.076, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009955/0.077, allocations: 0 / 0, free: 0 / 0 Notification: Performance of setup shared object (initialization): time 0.000612/0.07761, allocations: 0 / 0, free: 0 / 0 Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.07922, allocations: 0 / 0, free: 0 / 0 Notification: Performance of partitionIndependentBlocks (initialization): time 0.001783/0.08101, allocations: 0 / 0, free: 0 / 0 Notification: Performance of analyzeInitialSystem (initialization): time 0.002498/0.08351, allocations: 0 / 0, free: 0 / 0 Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.584e-05/0.08352, allocations: 0 / 0, free: 0 / 0 Notification: Performance of matching and sorting (n=93) (initialization): time 0.004731/0.08825, allocations: 0 / 0, free: 0 / 0 Notification: Performance of prepare postOptimizeDAE: time 8.995e-05/0.08834, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.08836, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (initialization): time 3.731e-05/0.0884, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000683/0.08908, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.486e-05/0.08912, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008998/0.09001, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002397/0.09025, allocations: 0 / 0, free: 0 / 0 Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 73 (faiSafCooPri.timPriSet.passed,$PRE.faiSafCooPri.timPriSet.passed,$whenCondition11,$whenCondition12,booPul.y,$PRE.booPul.y,$whenCondition4,faiSafHea.timSecSet.passed,$PRE.faiSafHea.timSecSet.passed,faiSafHea.ph.y,faiSafHea.y1,faiSafHea.timSecPri.passed,$PRE.faiSafHea.timSecPri.passed,faiSafHea.timPriSet.passed,$PRE.faiSafHea.timPriSet.passed,faiSafHea.timSecSet.entryTime,$PRE.faiSafHea.timSecSet.entryTime,faiSafHea.lesSecSet.lesHys.y,$PRE.faiSafHea.lesSecSet.lesHys.y,faiSafHea.timSecPri.entryTime,$PRE.faiSafHea.timSecPri.entryTime,faiSafHea.timPriSet.entryTime,$PRE.faiSafHea.timPriSet.entryTime,faiSafHea.lesSecPri.lesHys.y,$PRE.faiSafHea.lesSecPri.lesHys.y,faiSafHea.lesPriSet.lesHys.y,$PRE.faiSafHea.lesPriSet.lesHys.y,$whenCondition3,$whenCondition2,$whenCondition1,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition10,$whenCondition9,$whenCondition8,faiSafCoo.timSecSet.entryTime,$PRE.faiSafCoo.timSecSet.entryTime,faiSafCoo.lesSecSet.lesHys.y,$PRE.faiSafCoo.lesSecSet.lesHys.y,faiSafCoo.timSecPri.entryTime,$PRE.faiSafCoo.timSecPri.entryTime,faiSafCoo.timPriSet.entryTime,$PRE.faiSafCoo.timPriSet.entryTime,faiSafCoo.lesSecPri.lesHys.y,$PRE.faiSafCoo.lesSecPri.lesHys.y,faiSafCoo.lesPriSet.lesHys.y,$PRE.faiSafCoo.lesPriSet.lesHys.y,faiSafCooPri.timPriSet.entryTime,$PRE.faiSafCooPri.timPriSet.entryTime,faiSafCooPri.lesPriSet.lesHys.y,$PRE.faiSafCooPri.lesPriSet.lesHys.y,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition18,$whenCondition17,$whenCondition16,$whenCondition21,$whenCondition20,$whenCondition19,$whenCondition24,$whenCondition23,$whenCondition22,faiSafCoo.timSecSet.passed,$PRE.faiSafCoo.timSecSet.passed,faiSafCoo.ph.y,faiSafCoo.y1,faiSafCoo.timSecPri.passed,$PRE.faiSafCoo.timSecPri.passed,faiSafCoo.timPriSet.passed,$PRE.faiSafCoo.timPriSet.passed,faiSafCooPri.ph.ph.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 90 * Array equations: 0 * Algorithm blocks: 1 * 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.001306/0.09156, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005563/0.09212, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004184/0.09254, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.075e-05/0.09256, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.09257, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-05/0.09258, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007202/0.09978, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.029e-05/0.09979, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000506/0.1003, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt tearingSystem (simulation): time 1.838e-05/0.1003, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002674/0.1006, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.465e-05/0.1006, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.1006, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005058/0.1057, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt removeConstants (simulation): time 0.0004921/0.1062, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004772/0.1066, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007286/0.1074, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001011/0.1084, allocations: 0 / 0, free: 0 / 0 Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002618/0.1086, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sorting global known variables: time 0.001007/0.1096, allocations: 0 / 0, free: 0 / 0 Notification: Performance of sort global known variables: time 2.854e-05/0.1097, allocations: 0 / 0, free: 0 / 0 Notification: Performance of remove unused functions: time 0.002192/0.1119, 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: 50 ($whenCondition22,$whenCondition23,$whenCondition24,$whenCondition19,$whenCondition20,$whenCondition21,$whenCondition16,$whenCondition17,$whenCondition18,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition11,$whenCondition12,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition1,$whenCondition2,$whenCondition4,$whenCondition3,faiSafHea.lesPriSet.lesHys.y,faiSafHea.lesSecPri.lesHys.y,faiSafHea.timPriSet.passed,faiSafHea.timPriSet.entryTime,faiSafHea.timSecPri.passed,faiSafHea.timSecPri.entryTime,faiSafHea.y1,faiSafHea.ph.y,faiSafHea.lesSecSet.lesHys.y,faiSafHea.timSecSet.passed,faiSafHea.timSecSet.entryTime,booPul.y,faiSafCooPri.lesPriSet.lesHys.y,faiSafCooPri.timPriSet.passed,faiSafCooPri.timPriSet.entryTime,faiSafCoo.lesPriSet.lesHys.y,faiSafCoo.lesSecPri.lesHys.y,faiSafCoo.timPriSet.passed,faiSafCoo.timPriSet.entryTime,faiSafCoo.timSecPri.passed,faiSafCoo.timSecPri.entryTime,faiSafCoo.y1,faiSafCoo.ph.y,faiSafCoo.lesSecSet.lesHys.y,faiSafCoo.timSecSet.passed,faiSafCoo.timSecSet.entryTime) * Number of discrete states: 14 (faiSafHea.lesPriSet.lesHys.y,faiSafHea.timPriSet.entryTime,faiSafHea.lesSecSet.lesHys.y,faiSafHea.timSecSet.entryTime,faiSafHea.lesSecPri.lesHys.y,faiSafHea.timSecPri.entryTime,faiSafCooPri.lesPriSet.lesHys.y,faiSafCooPri.timPriSet.entryTime,faiSafCoo.lesPriSet.lesHys.y,faiSafCoo.timPriSet.entryTime,faiSafCoo.lesSecPri.lesHys.y,faiSafCoo.timSecPri.entryTime,faiSafCoo.lesSecSet.lesHys.y,faiSafCoo.timSecSet.entryTime) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 15 * 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.0008042/0.1127, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created initialization part: time 0.003745/0.1164, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created event and clocks part: time 3.898e-06/0.1164, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created simulation system equations: time 0.001837/0.1183, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/0.1211, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005925/0.127, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009605/0.1279, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: alias equations: time 0.0006746/0.1286, allocations: 0 / 0, free: 0 / 0 Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001363/0.13, allocations: 0 / 0, free: 0 / 0 Notification: Performance of SimCode: time 0.0004512/0.1304, allocations: 0 / 0, free: 0 / 0 Notification: Performance of Templates: time 0.003406/0.1338, allocations: 0 / 0, free: 0 / 0 " [Timeout remaining time 700] diffSimulationResults("Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.FailsafeCondition_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Templates_Plants_Controls_StagingRotation_Validation_FailsafeCondition.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Templates.Plants.Controls.StagingRotation.Validation.FailsafeCondition.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.6370039159992302]