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.001467/0.001467, allocations: 88.39 kB / 20.23 MB, free: 4.172 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.001732/0.001732, allocations: 161.3 kB / 23.55 MB, free: 0.8633 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.481/1.481, allocations: 177.1 MB / 203.9 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] 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 2.928/2.928, allocations: 377.8 MB / 0.6232 GB, free: 8.516 MB / 0.5886 GB " [Timeout remaining time 176] 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.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: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 0.8108 GB, free: 2.078 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.583e-05/2.742e-05, allocations: 3.406 kB / 0.8108 GB, free: 2.074 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003333/0.00336, allocations: 1.692 MB / 0.8125 GB, free: 396 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001088/0.004449, allocations: 0.5008 MB / 0.8129 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.045e-05/0.004519, allocations: 0.7812 kB / 0.8129 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 3.925e-05/0.004558, allocations: 7.875 kB / 0.813 GB, free: 15.88 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.219e-05/0.00465, allocations: 21.48 kB / 0.813 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.004908, allocations: 47.88 kB / 0.813 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0001723/0.00508, allocations: 83.66 kB / 0.8131 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001051/0.005186, allocations: 25.73 kB / 0.8131 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001855/0.005371, allocations: 51.89 kB / 0.8132 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 8.055e-05/0.005452, allocations: 27.89 kB / 0.8132 GB, free: 15.62 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 2.394e-05/0.005476, allocations: 9.188 kB / 0.8132 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 4.84e-05/0.005524, allocations: 15.94 kB / 0.8132 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.522e-05/0.005549, allocations: 15.92 kB / 0.8132 GB, free: 15.58 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 4.97e-05/0.005599, allocations: 21.58 kB / 0.8133 GB, free: 15.56 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001944/0.005793, allocations: 95.67 kB / 0.8134 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.334e-06/0.005796, allocations: 0 / 0.8134 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.62e-07/0.005796, allocations: 3.938 kB / 0.8134 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.005802, allocations: 0 / 0.8134 GB, free: 15.46 MB / 0.7761 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.0006307/0.006433, allocations: 324.6 kB / 0.8137 GB, free: 15.12 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.006471, allocations: 8.031 kB / 0.8137 GB, free: 15.11 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002638/0.006735, allocations: 28.88 kB / 0.8137 GB, free: 15.09 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002747/0.007009, allocations: 138.3 kB / 0.8138 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.007024, allocations: 4.375 kB / 0.8138 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.812e-05/0.007042, allocations: 8.906 kB / 0.8138 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.007309, allocations: 115.2 kB / 0.814 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.238e-06/0.007318, allocations: 192 / 0.814 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.591e-05/0.007334, allocations: 4.375 kB / 0.814 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.522e-06/0.007341, allocations: 3.938 kB / 0.814 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001835/0.007524, allocations: 45.03 kB / 0.814 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005088/0.008033, allocations: 265.2 kB / 0.8143 GB, free: 14.45 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.008195, allocations: 55.64 kB / 0.8143 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.885e-05/0.008284, allocations: 26.31 kB / 0.8143 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.008307, allocations: 4 kB / 0.8143 GB, free: 14.35 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.782e-05/0.008345, allocations: 34.56 kB / 0.8144 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=4): time 9.92e-07/0.008346, allocations: 0 / 0.8144 GB, free: 14.31 MB / 0.7761 GB Notification: Performance of matching and sorting (n=4): time 0.0004044/0.00875, allocations: 107.4 kB / 0.8145 GB, free: 14.2 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.914e-05/0.008819, allocations: 81.11 kB / 0.8146 GB, free: 14.1 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001439/0.008963, allocations: 134.7 kB / 0.8147 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 3.242e-05/0.008996, allocations: 30.55 kB / 0.8147 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.022e-05/0.009076, allocations: 100.1 kB / 0.8148 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.327e-05/0.009099, allocations: 10.11 kB / 0.8148 GB, free: 13.82 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.545e-05/0.009145, allocations: 13.72 kB / 0.8148 GB, free: 13.8 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001769/0.009321, allocations: 322.8 kB / 0.8151 GB, free: 13.47 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.258e-05/0.009414, allocations: 23.98 kB / 0.8152 GB, free: 13.45 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.009542, allocations: 66.06 kB / 0.8152 GB, free: 13.38 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001637/0.009705, allocations: 52.7 kB / 0.8153 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.009707, allocations: 0 / 0.8153 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002383/0.009945, allocations: 93.61 kB / 0.8154 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.019e-05/0.009966, allocations: 7.031 kB / 0.8154 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.00997, allocations: 192 / 0.8154 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/0.009988, allocations: 0 / 0.8154 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001052/0.01009, allocations: 15.92 kB / 0.8154 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.0101, allocations: 0 / 0.8154 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.188e-05/0.01019, allocations: 21.09 kB / 0.8154 GB, free: 13.18 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.0102, allocations: 7.984 kB / 0.8154 GB, free: 13.18 MB / 0.7761 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.0001174/0.01032, allocations: 123.3 kB / 0.8155 GB, free: 13.05 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.008e-05/0.01037, allocations: 15.95 kB / 0.8155 GB, free: 13.03 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.022e-05/0.0104, allocations: 8.344 kB / 0.8156 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.0104, allocations: 0.5 kB / 0.8156 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.01041, allocations: 0 / 0.8156 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.01041, allocations: 5.031 kB / 0.8156 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001907/0.0106, allocations: 125.2 kB / 0.8157 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.0106, allocations: 0.9062 kB / 0.8157 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.713e-05/0.01068, allocations: 11.98 kB / 0.8157 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.01068, allocations: 3.688 kB / 0.8157 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.228e-05/0.01069, allocations: 4 kB / 0.8157 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.01069, allocations: 0 / 0.8157 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.0107, allocations: 0 / 0.8157 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000295/0.01099, allocations: 183.4 kB / 0.8159 GB, free: 12.66 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.833e-05/0.01101, allocations: 11.88 kB / 0.8159 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.378e-05/0.01103, allocations: 4 kB / 0.8159 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001115/0.01114, allocations: 7.984 kB / 0.8159 GB, free: 12.63 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.314e-05/0.01121, allocations: 13.77 kB / 0.8159 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.751e-06/0.01121, allocations: 0 / 0.8159 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.000123/0.01134, allocations: 105.1 kB / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7.1e-08/0.01134, allocations: 0 / 0.816 GB, free: 12.52 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002411/0.01158, allocations: 12 kB / 0.816 GB, free: 12.51 MB / 0.7761 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.0001453/0.01172, allocations: 100.2 kB / 0.8161 GB, free: 12.4 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0002279/0.01195, allocations: 53.09 kB / 0.8162 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.01195, allocations: 0 / 0.8162 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 9.388e-05/0.01205, allocations: 29.02 kB / 0.8162 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.01232, allocations: 18.55 kB / 0.8162 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004433/0.01277, allocations: 170.2 kB / 0.8164 GB, free: 12.11 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.473e-05/0.01286, allocations: 84.41 kB / 0.8165 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 4.07e-05/0.0129, allocations: 1.297 kB / 0.8165 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.929e-05/0.01295, allocations: 20.42 kB / 0.8165 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of SimCode: time 7.11e-07/0.01295, allocations: 1.875 kB / 0.8165 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of Templates: time 0.003863/0.01681, allocations: 0.9386 MB / 0.8174 GB, free: 11.09 MB / 0.7761 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: 7.782747854012996]