Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0008186/0.0008186, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.0007971/0.0007971, allocations: 177.9 kB / 23.21 MB, free: 1.348 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 0.8363/0.8363, allocations: 177.1 MB / 203.5 MB, free: 5.719 MB / 186.7 MB " [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.723/1.723, allocations: 389 MB / 0.6338 GB, free: 12.72 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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: 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_latest_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_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 1.001 GB, free: 13.04 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.467e-05/2.615e-05, allocations: 2.281 kB / 1.001 GB, free: 13.03 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00211/0.002136, allocations: 1.684 MB / 1.003 GB, free: 11.34 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0007028/0.002839, allocations: 0.4987 MB / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.812e-05/0.002907, allocations: 0 / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 3.267e-05/0.002939, allocations: 3.938 kB / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.691e-05/0.003016, allocations: 19.75 kB / 1.003 GB, free: 10.82 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.003265, allocations: 51.92 kB / 1.003 GB, free: 10.77 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.003402, allocations: 87.59 kB / 1.003 GB, free: 10.68 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001212/0.003524, allocations: 24.2 kB / 1.003 GB, free: 10.65 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001451/0.003669, allocations: 47.91 kB / 1.003 GB, free: 10.61 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 6.512e-05/0.003734, allocations: 31.89 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.071e-05/0.003754, allocations: 8 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 4.806e-05/0.003803, allocations: 19.92 kB / 1.003 GB, free: 10.55 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.771e-05/0.00382, allocations: 11.94 kB / 1.003 GB, free: 10.54 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.916e-05/0.003849, allocations: 23.91 kB / 1.003 GB, free: 10.51 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001497/0.003999, allocations: 95.73 kB / 1.003 GB, free: 10.42 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.475e-06/0.004002, allocations: 4 kB / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of FrontEnd: time 1.273e-06/0.004003, allocations: 0 / 1.003 GB, free: 10.41 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 4.128e-06/0.004007, allocations: 0 / 1.003 GB, free: 10.41 MB / 0.9636 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.0004444/0.004451, allocations: 322 kB / 1.004 GB, free: 10.07 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.929e-05/0.004491, allocations: 8.75 kB / 1.004 GB, free: 10.06 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001559/0.004647, allocations: 28.83 kB / 1.004 GB, free: 10.04 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.004836, allocations: 138.9 kB / 1.004 GB, free: 9.875 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.001e-05/0.004846, allocations: 4.375 kB / 1.004 GB, free: 9.871 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.248e-05/0.004858, allocations: 12.38 kB / 1.004 GB, free: 9.859 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001822/0.005041, allocations: 109.6 kB / 1.004 GB, free: 9.734 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.005049, allocations: 4.125 kB / 1.004 GB, free: 9.73 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.396e-05/0.005063, allocations: 4.375 kB / 1.004 GB, free: 9.727 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.005073, allocations: 7.938 kB / 1.004 GB, free: 9.719 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.563e-05/0.005168, allocations: 43.97 kB / 1.004 GB, free: 9.676 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003674/0.005536, allocations: 260.3 kB / 1.004 GB, free: 9.391 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000106/0.005642, allocations: 62.47 kB / 1.004 GB, free: 9.32 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.563e-05/0.005687, allocations: 28.94 kB / 1.004 GB, free: 9.289 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.005703, allocations: 3.938 kB / 1.004 GB, free: 9.285 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.005725, allocations: 34.56 kB / 1.004 GB, free: 9.242 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.005726, allocations: 0 / 1.004 GB, free: 9.242 MB / 0.9636 GB Notification: Performance of matching and sorting (n=4): time 0.000234/0.00596, allocations: 101.6 kB / 1.005 GB, free: 9.137 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.439e-05/0.006004, allocations: 85.09 kB / 1.005 GB, free: 9.035 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.467e-05/0.006089, allocations: 136 kB / 1.005 GB, free: 8.895 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 1.419e-05/0.006103, allocations: 25.7 kB / 1.005 GB, free: 8.863 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 4.871e-05/0.006152, allocations: 96.09 kB / 1.005 GB, free: 8.766 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.006171, allocations: 23.83 kB / 1.005 GB, free: 8.742 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-05/0.0062, allocations: 13.72 kB / 1.005 GB, free: 8.723 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 8.392e-05/0.006284, allocations: 322.8 kB / 1.005 GB, free: 8.398 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.508e-05/0.006329, allocations: 23.98 kB / 1.005 GB, free: 8.375 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.385e-05/0.006393, allocations: 63.41 kB / 1.005 GB, free: 8.301 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.421e-05/0.006477, allocations: 56.92 kB / 1.005 GB, free: 8.242 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.006479, allocations: 0 / 1.005 GB, free: 8.242 MB / 0.9636 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001126/0.006592, allocations: 89.56 kB / 1.005 GB, free: 8.148 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.006604, allocations: 4 kB / 1.005 GB, free: 8.145 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.006609, allocations: 4 kB / 1.005 GB, free: 8.141 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.006622, allocations: 3.984 kB / 1.005 GB, free: 8.137 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.562e-05/0.006687, allocations: 4 kB / 1.005 GB, free: 8.133 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.006693, allocations: 4 kB / 1.005 GB, free: 8.129 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.628e-05/0.006729, allocations: 15.92 kB / 1.005 GB, free: 8.113 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.454e-06/0.006737, allocations: 4 kB / 1.005 GB, free: 8.109 MB / 0.9636 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 7.318e-05/0.00681, allocations: 121.8 kB / 1.006 GB, free: 7.98 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.583e-05/0.006826, allocations: 7.953 kB / 1.006 GB, free: 7.973 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.463e-05/0.00685, allocations: 8.344 kB / 1.006 GB, free: 7.957 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.006853, allocations: 4 kB / 1.006 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.006858, allocations: 0 / 1.006 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.006861, allocations: 0 / 1.006 GB, free: 7.953 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001009/0.006962, allocations: 129.2 kB / 1.006 GB, free: 7.797 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.91e-07/0.006962, allocations: 4 kB / 1.006 GB, free: 7.793 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.051e-05/0.006993, allocations: 15.92 kB / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.12e-07/0.006993, allocations: 0 / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.007001, allocations: 0 / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.007003, allocations: 0 / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.21e-07/0.007003, allocations: 0 / 1.006 GB, free: 7.777 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001441/0.007147, allocations: 183.4 kB / 1.006 GB, free: 7.582 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 8.275e-06/0.007156, allocations: 3.953 kB / 1.006 GB, free: 7.578 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.007172, allocations: 8 kB / 1.006 GB, free: 7.57 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.749e-05/0.00722, allocations: 16.05 kB / 1.006 GB, free: 7.555 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.799e-05/0.007268, allocations: 11.97 kB / 1.006 GB, free: 7.543 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.875e-06/0.00727, allocations: 0 / 1.006 GB, free: 7.543 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.39e-05/0.007324, allocations: 107.2 kB / 1.006 GB, free: 7.438 MB / 0.9636 GB Notification: Performance of sort global known variables: time 5e-08/0.007324, allocations: 0 / 1.006 GB, free: 7.438 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0001464/0.007471, allocations: 15.94 kB / 1.006 GB, free: 7.422 MB / 0.9636 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 7.44e-05/0.007545, allocations: 103.2 kB / 1.006 GB, free: 7.312 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0001341/0.007679, allocations: 51.95 kB / 1.006 GB, free: 7.262 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.007682, allocations: 8 kB / 1.006 GB, free: 7.254 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 3.987e-05/0.007721, allocations: 20.22 kB / 1.006 GB, free: 7.234 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001722/0.007894, allocations: 13.97 kB / 1.006 GB, free: 7.223 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003152/0.008209, allocations: 207.1 kB / 1.006 GB, free: 6.988 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.768e-05/0.008267, allocations: 75.88 kB / 1.007 GB, free: 6.891 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.684e-05/0.008303, allocations: 16.5 kB / 1.007 GB, free: 6.871 MB / 0.9636 GB Notification: Performance of SimCode: time 5.01e-07/0.008304, allocations: 4 kB / 1.007 GB, free: 6.867 MB / 0.9636 GB Notification: Performance of Templates: time 0.001736/0.01004, allocations: 1.072 MB / 1.008 GB, free: 5.801 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 6.164809085428715]