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.001261/0.001261, allocations: 81.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00199/0.003252, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.001181/0.001181, allocations: 161.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001269/0.00245, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 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.9024/0.9024, allocations: 177.2 MB / 189.8 MB, free: 5.277 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0817/0.9841, allocations: 53.66 MB / 243.4 MB, free: 15.53 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.773/1.773, allocations: 378.4 MB / 0.6079 GB, free: 7.723 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4696/2.242, allocations: 123.3 MB / 0.7283 GB, free: 5.75 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-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.202e-06/1.202e-06, allocations: 0 / 0.7296 GB, free: 4.453 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.896e-05/2.016e-05, allocations: 2.312 kB / 0.7296 GB, free: 4.449 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002226/0.002246, allocations: 1.795 MB / 0.7314 GB, free: 2.68 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.0005659/0.002812, allocations: 0.525 MB / 0.7319 GB, free: 2.156 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.748e-05/0.002859, allocations: 0 / 0.7319 GB, free: 2.156 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 2.271e-05/0.002882, allocations: 7.875 kB / 0.7319 GB, free: 2.148 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.79e-05/0.00293, allocations: 23.67 kB / 0.7319 GB, free: 2.133 MB / 0.698 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001107/0.00304, allocations: 44.33 kB / 0.732 GB, free: 2.09 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 0.0001067/0.003147, allocations: 94.25 kB / 0.7321 GB, free: 2.012 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 8.76e-05/0.003235, allocations: 20.22 kB / 0.7321 GB, free: 1.988 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001367/0.003371, allocations: 63.88 kB / 0.7321 GB, free: 1.926 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.282e-05/0.003434, allocations: 28.5 kB / 0.7322 GB, free: 1.898 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.718e-05/0.003451, allocations: 8 kB / 0.7322 GB, free: 1.891 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 5.5e-05/0.003506, allocations: 13.66 kB / 0.7322 GB, free: 1.879 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 2.031e-05/0.003527, allocations: 15.94 kB / 0.7322 GB, free: 1.863 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.327e-05/0.00355, allocations: 15.94 kB / 0.7322 GB, free: 1.848 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0001194/0.003669, allocations: 59.77 kB / 0.7323 GB, free: 1.789 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.298e-05/0.003682, allocations: 0.8125 kB / 0.7323 GB, free: 1.789 MB / 0.698 GB Notification: Performance of FrontEnd: time 7.22e-07/0.003683, allocations: 0 / 0.7323 GB, free: 1.789 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.218e-05/0.003695, allocations: 4 kB / 0.7323 GB, free: 1.785 MB / 0.698 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.0004064/0.004102, allocations: 301.9 kB / 0.7326 GB, free: 1.469 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.004137, allocations: 8.031 kB / 0.7326 GB, free: 1.461 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001641/0.004301, allocations: 102.6 kB / 0.7327 GB, free: 1.344 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001251/0.004426, allocations: 142 kB / 0.7328 GB, free: 1.184 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.665e-06/0.004434, allocations: 8.375 kB / 0.7328 GB, free: 1.176 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.228e-05/0.004446, allocations: 8.312 kB / 0.7328 GB, free: 1.168 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.004563, allocations: 107.1 kB / 0.7329 GB, free: 1.043 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.62e-06/0.004569, allocations: 0.7188 kB / 0.7329 GB, free: 1.043 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.915e-06/0.004577, allocations: 5.312 kB / 0.7329 GB, free: 1.039 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.004582, allocations: 11.88 kB / 0.7329 GB, free: 1.027 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.841e-05/0.004611, allocations: 15.92 kB / 0.733 GB, free: 1.012 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002339/0.004845, allocations: 189.6 kB / 0.7331 GB, free: 0.8125 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.668e-05/0.004901, allocations: 30.56 kB / 0.7332 GB, free: 0.7734 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.789e-05/0.004919, allocations: 14.17 kB / 0.7332 GB, free: 0.7578 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.004933, allocations: 7.938 kB / 0.7332 GB, free: 0.75 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.679e-05/0.00495, allocations: 30.56 kB / 0.7332 GB, free: 0.7109 MB / 0.698 GB Notification: Performance of pre-optimization done (n=4): time 8.21e-07/0.004951, allocations: 0.8125 kB / 0.7332 GB, free: 0.7109 MB / 0.698 GB Notification: Performance of matching and sorting (n=4): time 0.0001195/0.00507, allocations: 49.77 kB / 0.7333 GB, free: 0.6562 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/0.005095, allocations: 52.75 kB / 0.7333 GB, free: 0.5938 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.135e-05/0.005157, allocations: 134.7 kB / 0.7334 GB, free: 460 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.513e-05/0.005172, allocations: 25.7 kB / 0.7335 GB, free: 428 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.452e-05/0.005206, allocations: 96.8 kB / 0.7336 GB, free: 328 kB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 1.542e-05/0.005222, allocations: 11.94 kB / 0.7336 GB, free: 316 kB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.599e-05/0.005248, allocations: 19.17 kB / 0.7336 GB, free: 292 kB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.005354, allocations: 322.8 kB / 0.7339 GB, free: 15.96 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.203e-05/0.005366, allocations: 7.938 kB / 0.7339 GB, free: 15.95 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.686e-05/0.005392, allocations: 47.42 kB / 0.734 GB, free: 15.89 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.866e-05/0.005421, allocations: 21.72 kB / 0.734 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.005423, allocations: 0 / 0.734 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of matching and sorting (n=5) (initialization): time 4.858e-05/0.005472, allocations: 50.45 kB / 0.734 GB, free: 15.82 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/0.005482, allocations: 8 kB / 0.734 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.986e-06/0.005485, allocations: 0 / 0.734 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.355e-06/0.005493, allocations: 1.75 kB / 0.734 GB, free: 15.81 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.574e-05/0.005549, allocations: 11.94 kB / 0.734 GB, free: 15.8 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.788e-06/0.005553, allocations: 3.984 kB / 0.734 GB, free: 15.79 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.68e-05/0.00558, allocations: 11.89 kB / 0.7341 GB, free: 15.78 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.12e-06/0.005585, allocations: 4.688 kB / 0.7341 GB, free: 15.78 MB / 0.7136 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 4.754e-05/0.005632, allocations: 111.1 kB / 0.7342 GB, free: 15.66 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.646e-05/0.005649, allocations: 15.91 kB / 0.7342 GB, free: 15.64 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.289e-05/0.005672, allocations: 12.34 kB / 0.7342 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.372e-06/0.005673, allocations: 1.156 kB / 0.7342 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.72e-07/0.005674, allocations: 0 / 0.7342 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.005677, allocations: 0 / 0.7342 GB, free: 15.62 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.213e-05/0.005759, allocations: 91.09 kB / 0.7343 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.91e-07/0.005759, allocations: 0 / 0.7343 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.358e-05/0.005783, allocations: 11.94 kB / 0.7343 GB, free: 15.51 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 7.054e-06/0.00579, allocations: 8.969 kB / 0.7343 GB, free: 15.5 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.005792, allocations: 7.938 kB / 0.7343 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.338e-06/0.005796, allocations: 0 / 0.7343 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.01e-07/0.005797, allocations: 0.5312 kB / 0.7343 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.005798, allocations: 1.844 kB / 0.7343 GB, free: 15.49 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.94e-05/0.005867, allocations: 139.5 kB / 0.7344 GB, free: 15.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.532e-05/0.005882, allocations: 11.92 kB / 0.7345 GB, free: 15.33 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.813e-05/0.00592, allocations: 8 kB / 0.7345 GB, free: 15.32 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.186e-05/0.005952, allocations: 9.203 kB / 0.7345 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.496e-06/0.005956, allocations: 3.984 kB / 0.7345 GB, free: 15.31 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 8.931e-05/0.006045, allocations: 28.27 kB / 0.7345 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.006045, allocations: 0 / 0.7345 GB, free: 15.28 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000112/0.006157, allocations: 16.66 kB / 0.7345 GB, free: 15.27 MB / 0.7136 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 5.938e-05/0.006216, allocations: 81.11 kB / 0.7346 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 6.594e-05/0.006282, allocations: 21.59 kB / 0.7346 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.971e-06/0.006288, allocations: 0 / 0.7346 GB, free: 15.16 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.658e-05/0.006315, allocations: 21.61 kB / 0.7346 GB, free: 15.13 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000133/0.006448, allocations: 43.06 kB / 0.7347 GB, free: 15.09 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008769/0.007325, allocations: 197.8 kB / 0.7349 GB, free: 14.87 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.152e-05/0.007356, allocations: 63.34 kB / 0.7349 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 2.414e-05/0.007381, allocations: 1.125 kB / 0.7349 GB, free: 14.79 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.873e-05/0.007439, allocations: 64.2 kB / 0.735 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of SimCode: time 9.22e-07/0.00744, allocations: 0 / 0.735 GB, free: 14.72 MB / 0.7136 GB Notification: Performance of Templates: time 0.002212/0.009652, allocations: 0.9917 MB / 0.736 GB, free: 13.78 MB / 0.7136 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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.576087148860097]