Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001652/0.001653, allocations: 103.6 kB / 16.35 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001777/0.001777, allocations: 193.4 kB / 17.3 MB, free: 5.859 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.188/2.188, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 61.77 kB / 0.814 GB, free: 32.5 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2276/0.229, allocations: 140.4 MB / 0.9511 GB, free: 8.023 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003099/0.2322, allocations: 1.673 MB / 0.9528 GB, free: 6.34 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007934/0.233, allocations: 450.9 kB / 0.9532 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.933e-05/0.2331, allocations: 4 kB / 0.9532 GB, free: 5.891 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.739e-05/0.2331, allocations: 7.922 kB / 0.9532 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 8.475e-05/0.2332, allocations: 11.81 kB / 0.9532 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001761/0.2334, allocations: 27.97 kB / 0.9532 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000122/0.2335, allocations: 91.69 kB / 0.9533 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.2337, allocations: 27.89 kB / 0.9533 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001135/0.2338, allocations: 39.78 kB / 0.9534 GB, free: 5.688 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 8.018e-05/0.2339, allocations: 39.83 kB / 0.9534 GB, free: 5.648 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.14e-05/0.2339, allocations: 8 kB / 0.9534 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.406e-05/0.2339, allocations: 8 kB / 0.9534 GB, free: 5.633 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.566e-05/0.234, allocations: 19.92 kB / 0.9535 GB, free: 5.613 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 4.499e-05/0.234, allocations: 35.75 kB / 0.9535 GB, free: 5.578 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001284/0.2341, allocations: 87.69 kB / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2342, allocations: 0 / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.824e-06/0.2342, allocations: 0 / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.2342, allocations: 0 / 0.9536 GB, free: 5.492 MB / 0.7325 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.0005074/0.2347, allocations: 391.2 kB / 0.954 GB, free: 5.062 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.2347, allocations: 12.03 kB / 0.954 GB, free: 5.051 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.175e-05/0.2348, allocations: 12.75 kB / 0.954 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001372/0.2349, allocations: 184.2 kB / 0.9542 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.079e-05/0.2349, allocations: 384 / 0.9542 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.491e-05/0.235, allocations: 4.375 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002045/0.2352, allocations: 91.69 kB / 0.9542 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.2352, allocations: 3.938 kB / 0.9542 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.155e-05/0.2352, allocations: 0 / 0.9542 GB, free: 4.711 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2352, allocations: 8 kB / 0.9543 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001516/0.2354, allocations: 43.97 kB / 0.9543 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004946/0.2359, allocations: 328.6 kB / 0.9546 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000134/0.236, allocations: 46.56 kB / 0.9547 GB, free: 4.234 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.673e-05/0.2361, allocations: 36.88 kB / 0.9547 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.2361, allocations: 3.984 kB / 0.9547 GB, free: 4.191 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.566e-05/0.2362, allocations: 34.55 kB / 0.9547 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 1.173e-06/0.2362, allocations: 0 / 0.9547 GB, free: 4.148 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0003294/0.2365, allocations: 101.7 kB / 0.9548 GB, free: 4.043 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.82e-05/0.2366, allocations: 81.11 kB / 0.9549 GB, free: 3.945 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000108/0.2367, allocations: 136.4 kB / 0.955 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.851e-05/0.2367, allocations: 25.7 kB / 0.9551 GB, free: 3.77 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.653e-05/0.2368, allocations: 96.12 kB / 0.9551 GB, free: 3.672 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.739e-05/0.2368, allocations: 15.75 kB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/0.2369, allocations: 21.7 kB / 0.9552 GB, free: 3.629 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.871e-05/0.237, allocations: 318.8 kB / 0.9555 GB, free: 3.309 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.126e-05/0.237, allocations: 23.98 kB / 0.9555 GB, free: 3.285 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.636e-05/0.2371, allocations: 41.69 kB / 0.9555 GB, free: 3.238 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001279/0.2373, allocations: 48.83 kB / 0.9556 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.2373, allocations: 0 / 0.9556 GB, free: 3.188 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000191/0.2375, allocations: 97.45 kB / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.2375, allocations: 4 kB / 0.9557 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.2375, allocations: 0 / 0.9557 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.2375, allocations: 4.031 kB / 0.9557 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001005/0.2376, allocations: 11.98 kB / 0.9557 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.2376, allocations: 0 / 0.9557 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.698e-05/0.2377, allocations: 11.98 kB / 0.9557 GB, free: 3.055 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.03e-05/0.2377, allocations: 4.125 kB / 0.9557 GB, free: 3.051 MB / 0.7325 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 9.137e-05/0.2378, allocations: 119.8 kB / 0.9558 GB, free: 2.926 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.2379, allocations: 7.906 kB / 0.9558 GB, free: 2.918 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.89e-05/0.2379, allocations: 16.25 kB / 0.9559 GB, free: 2.902 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-06/0.2379, allocations: 3.984 kB / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2379, allocations: 0 / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.756e-06/0.2379, allocations: 0 / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001855/0.2381, allocations: 189.6 kB / 0.956 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.875e-06/0.2381, allocations: 3.984 kB / 0.956 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.362e-05/0.2382, allocations: 7.938 kB / 0.9561 GB, free: 2.652 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.2382, allocations: 4.188 kB / 0.9561 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.026e-05/0.2382, allocations: 3.984 kB / 0.9561 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.985e-06/0.2383, allocations: 0 / 0.9561 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2383, allocations: 3.938 kB / 0.9561 GB, free: 2.641 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00023/0.2385, allocations: 187.3 kB / 0.9562 GB, free: 2.441 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.598e-05/0.2385, allocations: 77.11 kB / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.189e-05/0.2386, allocations: 4 kB / 0.9563 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001066/0.2387, allocations: 7.984 kB / 0.9563 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-05/0.2387, allocations: 11.98 kB / 0.9563 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.725e-06/0.2387, allocations: 4 kB / 0.9563 GB, free: 2.32 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 6.884e-05/0.2388, allocations: 107.2 kB / 0.9564 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2388, allocations: 0 / 0.9564 GB, free: 2.215 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002377/0.2391, allocations: 19.84 kB / 0.9565 GB, free: 2.195 MB / 0.7325 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 9.545e-05/0.2392, allocations: 95.25 kB / 0.9566 GB, free: 2.094 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000204/0.2394, allocations: 59.89 kB / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2394, allocations: 0 / 0.9566 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.212e-05/0.2395, allocations: 31.98 kB / 0.9566 GB, free: 2.004 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002576/0.2398, allocations: 7.062 kB / 0.9567 GB, free: 2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003861/0.2401, allocations: 171.1 kB / 0.9568 GB, free: 1.805 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002409/0.2404, allocations: 0.6924 MB / 0.9575 GB, free: 1.086 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 4.148e-05/0.2405, allocations: 7.984 kB / 0.9575 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.489e-05/0.2405, allocations: 11.44 kB / 0.9575 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of SimCode: time 2.51e-07/0.2405, allocations: 0 / 0.9575 GB, free: 1.066 MB / 0.7325 GB Notification: Performance of Templates: time 0.003093/0.2436, allocations: 0.8817 MB / 0.9584 GB, free: 200 kB / 0.7325 GB make -j1 -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches