Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.001844/0.001844, allocations: 108 kB / 16.45 MB, free: 6.512 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.002281/0.002281, allocations: 212.2 kB / 19.43 MB, free: 3.648 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.538/1.538, allocations: 230.6 MB / 252.8 MB, free: 8.934 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.408/3.408, allocations: 0.49 GB / 0.7915 GB, free: 33.43 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [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.00215/0.00215, allocations: 68.81 kB / 1.149 GB, free: 26.05 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4447/0.4468, allocations: 176.1 MB / 1.321 GB, free: 2.801 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003608/0.4504, allocations: 1.707 MB / 1.323 GB, free: 1.082 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001069/0.4515, allocations: 0.5182 MB / 1.323 GB, free: 0.5586 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.644e-05/0.4516, allocations: 4 kB / 1.323 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 3.991e-05/0.4516, allocations: 7.922 kB / 1.323 GB, free: 0.5469 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 8.349e-05/0.4517, allocations: 15.8 kB / 1.323 GB, free: 0.5312 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.4519, allocations: 43.89 kB / 1.323 GB, free: 500 kB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0001716/0.4521, allocations: 95.69 kB / 1.324 GB, free: 404 kB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001455/0.4523, allocations: 24.16 kB / 1.324 GB, free: 376 kB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001436/0.4524, allocations: 35.86 kB / 1.324 GB, free: 340 kB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 9.478e-05/0.4525, allocations: 47.77 kB / 1.324 GB, free: 292 kB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.385e-05/0.4525, allocations: 8 kB / 1.324 GB, free: 284 kB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 4.846e-05/0.4526, allocations: 8 kB / 1.324 GB, free: 276 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 2.693e-05/0.4526, allocations: 19.92 kB / 1.324 GB, free: 256 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 5.097e-05/0.4526, allocations: 35.8 kB / 1.324 GB, free: 220 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000189/0.4528, allocations: 87.62 kB / 1.324 GB, free: 132 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.4528, allocations: 4 kB / 1.324 GB, free: 128 kB / 1.014 GB Notification: Performance of FrontEnd: time 2.505e-06/0.4528, allocations: 0 / 1.324 GB, free: 128 kB / 1.014 GB Notification: Performance of Transformations before backend: time 7.504e-06/0.4529, allocations: 7.938 kB / 1.324 GB, free: 120 kB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006565/0.4535, allocations: 404.7 kB / 1.324 GB, free: 15.68 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.4536, allocations: 11.98 kB / 1.324 GB, free: 15.66 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002352/0.4538, allocations: 24.88 kB / 1.324 GB, free: 15.64 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002892/0.4541, allocations: 204.2 kB / 1.324 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.021e-05/0.4541, allocations: 384 / 1.324 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.786e-05/0.4541, allocations: 8.375 kB / 1.324 GB, free: 15.39 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002257/0.4543, allocations: 91.62 kB / 1.325 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.4543, allocations: 0 / 1.325 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.793e-05/0.4544, allocations: 7.984 kB / 1.325 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.772e-06/0.4544, allocations: 0 / 1.325 GB, free: 15.29 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001696/0.4545, allocations: 51.95 kB / 1.325 GB, free: 15.23 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005566/0.4551, allocations: 324.7 kB / 1.325 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001533/0.4552, allocations: 46.56 kB / 1.325 GB, free: 14.81 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.573e-05/0.4553, allocations: 24.94 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.4553, allocations: 8 kB / 1.325 GB, free: 14.78 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.849e-05/0.4554, allocations: 30.56 kB / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.4554, allocations: 0 / 1.325 GB, free: 14.74 MB / 1.029 GB Notification: Performance of matching and sorting (n=4): time 0.000373/0.4558, allocations: 105.6 kB / 1.325 GB, free: 14.63 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.15e-05/0.4558, allocations: 81.11 kB / 1.325 GB, free: 14.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001407/0.456, allocations: 139.4 kB / 1.325 GB, free: 14.39 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.276e-05/0.456, allocations: 29.7 kB / 1.325 GB, free: 14.35 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 8.055e-05/0.4561, allocations: 100.1 kB / 1.325 GB, free: 14.25 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.472e-05/0.4561, allocations: 15.91 kB / 1.325 GB, free: 14.23 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.627e-05/0.4561, allocations: 21.7 kB / 1.325 GB, free: 14.21 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001618/0.4563, allocations: 322.8 kB / 1.326 GB, free: 13.88 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.528e-05/0.4564, allocations: 19.98 kB / 1.326 GB, free: 13.86 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.439e-05/0.4565, allocations: 45.69 kB / 1.326 GB, free: 13.81 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001537/0.4566, allocations: 40.84 kB / 1.326 GB, free: 13.77 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4566, allocations: 7.938 kB / 1.326 GB, free: 13.76 MB / 1.029 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002054/0.4568, allocations: 85.61 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.4569, allocations: 4 kB / 1.326 GB, free: 13.67 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.4569, allocations: 3.938 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.4569, allocations: 4 kB / 1.326 GB, free: 13.66 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001108/0.457, allocations: 12.2 kB / 1.326 GB, free: 13.65 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.152e-06/0.457, allocations: 3.938 kB / 1.326 GB, free: 13.64 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.017e-05/0.4571, allocations: 19.92 kB / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.4571, allocations: 0 / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (chiSwi.hysteresis.y,$PRE.chiSwi.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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.0001771/0.4573, allocations: 121.8 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.141e-05/0.4573, allocations: 7.953 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.248e-05/0.4573, allocations: 8.25 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.4573, allocations: 0 / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.4573, allocations: 4 kB / 1.326 GB, free: 13.47 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.358e-06/0.4574, allocations: 7.922 kB / 1.326 GB, free: 13.46 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002206/0.4576, allocations: 193.5 kB / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.4576, allocations: 0 / 1.326 GB, free: 13.23 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.315e-05/0.4577, allocations: 11.98 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.4577, allocations: 0 / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.4577, allocations: 4 kB / 1.326 GB, free: 13.21 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.94e-06/0.4577, allocations: 7.984 kB / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4577, allocations: 0 / 1.326 GB, free: 13.2 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002692/0.4579, allocations: 183.4 kB / 1.327 GB, free: 13.01 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 5.276e-05/0.458, allocations: 81.06 kB / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.458, allocations: 0 / 1.327 GB, free: 12.91 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.4581, allocations: 11.98 kB / 1.327 GB, free: 12.9 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.4582, allocations: 11.98 kB / 1.327 GB, free: 12.89 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.704e-06/0.4582, allocations: 4.172 kB / 1.327 GB, free: 12.88 MB / 1.029 GB Notification: Performance of sorting global known variables: time 9.468e-05/0.4583, allocations: 105 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4583, allocations: 4 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002324/0.4585, allocations: 19.89 kB / 1.327 GB, free: 12.76 MB / 1.029 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001568/0.4587, allocations: 107.2 kB / 1.327 GB, free: 12.64 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002441/0.4589, allocations: 51.97 kB / 1.327 GB, free: 12.59 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.4589, allocations: 0 / 1.327 GB, free: 12.59 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 9.338e-05/0.459, allocations: 27.98 kB / 1.327 GB, free: 12.57 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002484/0.4593, allocations: 4 kB / 1.327 GB, free: 12.56 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004426/0.4597, allocations: 193.6 kB / 1.327 GB, free: 12.35 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003727/0.4601, allocations: 0.6885 MB / 1.328 GB, free: 11.63 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.128e-05/0.4601, allocations: 4 kB / 1.328 GB, free: 11.63 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.956e-05/0.4602, allocations: 7.438 kB / 1.328 GB, free: 11.62 MB / 1.029 GB Notification: Performance of SimCode: time 3.51e-07/0.4602, allocations: 11.94 kB / 1.328 GB, free: 11.61 MB / 1.029 GB Notification: Performance of Templates: time 0.003844/0.464, allocations: 0.895 MB / 1.329 GB, free: 10.72 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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: 9.58202908327803]