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.00116/0.00116, allocations: 110.6 kB / 16.37 MB, free: 6.012 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.00106/0.00106, allocations: 189.5 kB / 17.31 MB, free: 5.613 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.206/1.206, allocations: 222.9 MB / 241 MB, free: 15.16 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 1.978/1.978, allocations: 390.3 MB / 0.6655 GB, free: 0.5664 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 67.42 kB / 0.814 GB, free: 32.73 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2138/0.215, allocations: 140.4 MB / 0.9511 GB, free: 8.016 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002424/0.2174, allocations: 1.669 MB / 0.9528 GB, free: 6.336 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0005647/0.218, allocations: 447 kB / 0.9532 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.433e-05/0.218, allocations: 0 / 0.9532 GB, free: 5.895 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.926e-05/0.2181, allocations: 11.86 kB / 0.9532 GB, free: 5.883 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.96e-05/0.2181, allocations: 11.86 kB / 0.9532 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.000133/0.2183, allocations: 27.91 kB / 0.9532 GB, free: 5.844 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 9.291e-05/0.2184, allocations: 83.7 kB / 0.9533 GB, free: 5.762 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001204/0.2185, allocations: 35.88 kB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 8.222e-05/0.2186, allocations: 27.92 kB / 0.9534 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 6.736e-05/0.2187, allocations: 47.72 kB / 0.9534 GB, free: 5.652 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.698e-05/0.2187, allocations: 8 kB / 0.9534 GB, free: 5.645 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 1.364e-05/0.2187, allocations: 4 kB / 0.9534 GB, free: 5.641 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.35e-05/0.2187, allocations: 23.91 kB / 0.9535 GB, free: 5.617 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.977e-05/0.2188, allocations: 35.8 kB / 0.9535 GB, free: 5.582 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 9.726e-05/0.2189, allocations: 83.64 kB / 0.9536 GB, free: 5.5 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.214e-06/0.2189, allocations: 4 kB / 0.9536 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.264e-06/0.2189, allocations: 3.984 kB / 0.9536 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.566e-06/0.2189, 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.0004222/0.2193, allocations: 387.2 kB / 0.954 GB, free: 5.066 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.561e-05/0.2194, allocations: 8.031 kB / 0.954 GB, free: 5.059 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.251e-05/0.2194, allocations: 12.75 kB / 0.954 GB, free: 5.047 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.2195, allocations: 180.2 kB / 0.9542 GB, free: 4.832 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.309e-05/0.2195, allocations: 12.31 kB / 0.9542 GB, free: 4.82 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.2196, allocations: 4.375 kB / 0.9542 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001749/0.2197, allocations: 91.69 kB / 0.9543 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.262e-06/0.2198, allocations: 0 / 0.9543 GB, free: 4.715 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.165e-05/0.2198, allocations: 7.984 kB / 0.9543 GB, free: 4.707 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2198, allocations: 4 kB / 0.9543 GB, free: 4.703 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001307/0.2199, allocations: 47.91 kB / 0.9543 GB, free: 4.656 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003887/0.2203, allocations: 324.7 kB / 0.9546 GB, free: 4.289 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001156/0.2204, allocations: 58.58 kB / 0.9547 GB, free: 4.223 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.605e-05/0.2205, allocations: 24.94 kB / 0.9547 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.368e-05/0.2205, allocations: 0 / 0.9547 GB, free: 4.195 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.103e-05/0.2206, allocations: 42.56 kB / 0.9547 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=4): time 8.31e-07/0.2206, allocations: 0 / 0.9547 GB, free: 4.145 MB / 0.7325 GB Notification: Performance of matching and sorting (n=4): time 0.0002824/0.2208, allocations: 89.66 kB / 0.9548 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.2209, allocations: 81.09 kB / 0.9549 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.125e-05/0.221, allocations: 130 kB / 0.955 GB, free: 3.812 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.51e-05/0.221, allocations: 25.7 kB / 0.9551 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 4.35e-05/0.2211, allocations: 100.1 kB / 0.9551 GB, free: 3.68 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.104e-05/0.2211, allocations: 23.73 kB / 0.9552 GB, free: 3.656 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.766e-05/0.2211, allocations: 25.64 kB / 0.9552 GB, free: 3.625 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.2212, allocations: 322.8 kB / 0.9555 GB, free: 3.301 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.962e-05/0.2213, allocations: 27.92 kB / 0.9555 GB, free: 3.273 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.952e-05/0.2214, allocations: 33.7 kB / 0.9556 GB, free: 3.234 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001183/0.2215, allocations: 52.86 kB / 0.9556 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2215, allocations: 0 / 0.9556 GB, free: 3.18 MB / 0.7325 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001707/0.2217, allocations: 85.58 kB / 0.9557 GB, free: 3.09 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 9.938e-06/0.2217, allocations: 4 kB / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2217, allocations: 0 / 0.9557 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.716e-06/0.2217, allocations: 3.938 kB / 0.9557 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.68e-05/0.2218, allocations: 15.92 kB / 0.9557 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.737e-06/0.2218, allocations: 0 / 0.9557 GB, free: 3.066 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.921e-05/0.2219, allocations: 15.98 kB / 0.9557 GB, free: 3.051 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.085e-06/0.2219, allocations: 3.938 kB / 0.9557 GB, free: 3.047 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 7.147e-05/0.222, allocations: 117.8 kB / 0.9558 GB, free: 2.922 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.759e-05/0.222, allocations: 7.906 kB / 0.9559 GB, free: 2.914 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.188e-05/0.2221, allocations: 16.23 kB / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.2221, allocations: 0 / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.2221, allocations: 0 / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.2221, allocations: 0 / 0.9559 GB, free: 2.898 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001609/0.2222, allocations: 193.8 kB / 0.9561 GB, free: 2.66 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.2223, allocations: 4 kB / 0.9561 GB, free: 2.656 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.703e-05/0.2223, allocations: 8 kB / 0.9561 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.2223, allocations: 0 / 0.9561 GB, free: 2.648 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.867e-06/0.2223, allocations: 3.984 kB / 0.9561 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.2224, allocations: 0 / 0.9561 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.11e-07/0.2224, allocations: 0 / 0.9561 GB, free: 2.645 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.2226, allocations: 187.3 kB / 0.9563 GB, free: 2.445 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.907e-05/0.2226, allocations: 81.11 kB / 0.9563 GB, free: 2.348 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.2226, allocations: 4 kB / 0.9563 GB, free: 2.344 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.596e-05/0.2227, allocations: 7.984 kB / 0.9563 GB, free: 2.336 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.729e-05/0.2228, allocations: 7.984 kB / 0.9563 GB, free: 2.328 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.522e-06/0.2228, allocations: 4.234 kB / 0.9564 GB, free: 2.324 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.136e-05/0.2228, allocations: 106.3 kB / 0.9565 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.31e-07/0.2228, allocations: 0 / 0.9565 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002159/0.2231, allocations: 19.84 kB / 0.9565 GB, free: 2.203 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 8.025e-05/0.2232, allocations: 111.2 kB / 0.9566 GB, free: 2.086 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0001751/0.2233, allocations: 55.91 kB / 0.9566 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2233, allocations: 0 / 0.9566 GB, free: 2.031 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 7.09e-05/0.2234, allocations: 23.98 kB / 0.9567 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002167/0.2236, allocations: 10.06 kB / 0.9567 GB, free: 2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003063/0.224, 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.0002142/0.2242, allocations: 0.7001 MB / 0.9575 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 3.217e-05/0.2242, allocations: 0 / 0.9575 GB, free: 1.078 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.102e-05/0.2243, allocations: 15.38 kB / 0.9575 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of SimCode: time 2e-07/0.2243, allocations: 0 / 0.9575 GB, free: 1.062 MB / 0.7325 GB Notification: Performance of Templates: time 0.00248/0.2267, allocations: 0.8849 MB / 0.9584 GB, free: 192 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 cvode -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