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.00119/0.001189, allocations: 99.34 kB / 16.02 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0021/0.0021, allocations: 186.2 kB / 16.92 MB, free: 6.75 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.417/1.417, allocations: 223.3 MB / 241 MB, free: 5.359 MB / 190.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.494/2.494, allocations: 390.9 MB / 0.667 GB, free: 2.41 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004098/0.0004099, allocations: 8 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7666/0.7671, allocations: 142.4 MB / 0.9557 GB, free: 7.727 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.00189/0.769, allocations: 1.387 MB / 0.9571 GB, free: 6.629 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006511/0.7697, allocations: 441.3 kB / 0.9575 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.941e-05/0.7698, allocations: 1.125 kB / 0.9575 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.154e-05/0.7698, allocations: 3.938 kB / 0.9575 GB, free: 6.281 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 9.606e-05/0.7699, allocations: 18.19 kB / 0.9575 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001726/0.7701, allocations: 20.2 kB / 0.9575 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001086/0.7702, allocations: 74.28 kB / 0.9576 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.7703, allocations: 30.88 kB / 0.9576 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.7704, allocations: 35.44 kB / 0.9577 GB, free: 6.164 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 8.131e-05/0.7705, allocations: 30.31 kB / 0.9577 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.105e-05/0.7706, allocations: 2.406 kB / 0.9577 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 1.56e-05/0.7706, allocations: 1.375 kB / 0.9577 GB, free: 6.145 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 2.064e-05/0.7706, allocations: 10.25 kB / 0.9577 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 5.297e-05/0.7707, allocations: 53.61 kB / 0.9578 GB, free: 6.086 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.212e-05/0.7708, allocations: 56.08 kB / 0.9578 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.7708, allocations: 4 kB / 0.9578 GB, free: 6.043 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.805e-06/0.7708, allocations: 7.922 kB / 0.9578 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.7708, allocations: 1.094 kB / 0.9578 GB, free: 6.035 MB / 0.7169 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.0004778/0.7713, allocations: 383.8 kB / 0.9582 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.7713, allocations: 8.812 kB / 0.9582 GB, free: 5.645 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.927e-05/0.7714, allocations: 14.19 kB / 0.9582 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.7715, allocations: 183.4 kB / 0.9584 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.611e-05/0.7715, allocations: 2.656 kB / 0.9584 GB, free: 5.426 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.962e-05/0.7715, allocations: 7.406 kB / 0.9584 GB, free: 5.422 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002177/0.7718, allocations: 99.23 kB / 0.9585 GB, free: 5.34 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.106e-06/0.7718, allocations: 5.031 kB / 0.9585 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.7718, allocations: 0 / 0.9585 GB, free: 5.336 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.241e-06/0.7718, allocations: 5.125 kB / 0.9585 GB, free: 5.332 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001673/0.772, allocations: 55.5 kB / 0.9586 GB, free: 5.312 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004598/0.7725, allocations: 338.4 kB / 0.9589 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001412/0.7726, allocations: 48.81 kB / 0.9589 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.704e-05/0.7727, allocations: 38 kB / 0.959 GB, free: 4.91 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.7727, allocations: 7.984 kB / 0.959 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.767e-05/0.7728, allocations: 31.97 kB / 0.959 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=4): time 1.133e-06/0.7728, allocations: 0 / 0.959 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=4): time 0.0003657/0.7731, allocations: 118.3 kB / 0.9591 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.012e-05/0.7732, allocations: 78.36 kB / 0.9592 GB, free: 4.699 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.945e-05/0.7733, allocations: 125.6 kB / 0.9593 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.7733, allocations: 30.92 kB / 0.9593 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.804e-05/0.7734, allocations: 95.88 kB / 0.9594 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.121e-05/0.7734, allocations: 10.44 kB / 0.9594 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.694e-05/0.7734, allocations: 15 kB / 0.9595 GB, free: 4.426 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.811e-05/0.7735, allocations: 320.1 kB / 0.9598 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.678e-05/0.7736, allocations: 36.95 kB / 0.9598 GB, free: 4.086 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.354e-05/0.7737, allocations: 40.61 kB / 0.9598 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001648/0.7739, allocations: 64.7 kB / 0.9599 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.7739, allocations: 0 / 0.9599 GB, free: 4.023 MB / 0.7169 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002118/0.7741, allocations: 90.08 kB / 0.96 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.7741, allocations: 5.719 kB / 0.96 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.7741, allocations: 0 / 0.96 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.7741, allocations: 3.984 kB / 0.96 GB, free: 3.965 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.7743, allocations: 17.5 kB / 0.96 GB, free: 3.957 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/0.7743, allocations: 3.938 kB / 0.96 GB, free: 3.953 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.683e-05/0.7744, allocations: 19.02 kB / 0.96 GB, free: 3.945 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.024e-05/0.7744, allocations: 5.375 kB / 0.96 GB, free: 3.941 MB / 0.7169 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.459e-05/0.7745, allocations: 118.5 kB / 0.9601 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.972e-05/0.7745, allocations: 11 kB / 0.9602 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.316e-05/0.7745, allocations: 10.91 kB / 0.9602 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.524e-06/0.7745, allocations: 0 / 0.9602 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.568e-06/0.7746, allocations: 1.438 kB / 0.9602 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.7746, allocations: 0 / 0.9602 GB, free: 3.805 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001576/0.7747, allocations: 191.7 kB / 0.9604 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.7747, allocations: 1.562 kB / 0.9604 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.761e-05/0.7748, allocations: 11.7 kB / 0.9604 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.7748, allocations: 2.156 kB / 0.9604 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.868e-06/0.7748, allocations: 0 / 0.9604 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.7748, allocations: 7.938 kB / 0.9604 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.7748, allocations: 0 / 0.9604 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002161/0.7751, allocations: 190 kB / 0.9606 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.56e-05/0.7751, allocations: 83.36 kB / 0.9606 GB, free: 3.309 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.242e-05/0.7751, allocations: 9.562 kB / 0.9606 GB, free: 3.301 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001103/0.7752, allocations: 14.64 kB / 0.9607 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.168e-05/0.7753, allocations: 8.516 kB / 0.9607 GB, free: 3.293 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.013e-06/0.7753, allocations: 5.359 kB / 0.9607 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 4.921e-05/0.7754, allocations: 104.9 kB / 0.9608 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.7754, allocations: 0 / 0.9608 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002293/0.7756, allocations: 11.5 kB / 0.9608 GB, free: 3.199 MB / 0.7169 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.000113/0.7757, allocations: 101.4 kB / 0.9609 GB, free: 3.109 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002401/0.776, allocations: 62.47 kB / 0.9609 GB, free: 3.086 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.776, allocations: 3.938 kB / 0.9609 GB, free: 3.082 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.242e-05/0.7761, allocations: 39.22 kB / 0.961 GB, free: 3.062 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003049/0.7764, allocations: 6.75 kB / 0.961 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000377/0.7768, allocations: 225.6 kB / 0.9612 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001411/0.7769, allocations: 0.6947 MB / 0.9619 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.087e-05/0.777, allocations: 10.19 kB / 0.9619 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of SimCode: time 4.01e-07/0.777, allocations: 0 / 0.9619 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of Templates: time 0.002558/0.7795, allocations: 0.9826 MB / 0.9628 GB, free: 1.637 MB / 0.7169 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 -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