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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001223/0.001223, allocations: 105.6 kB / 16.41 MB, free: 6.457 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.001321/0.001321, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.367/1.367, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.202/2.202, allocations: 390.3 MB / 0.6655 GB, free: 0.625 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001481/0.001481, allocations: 59.91 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9037/0.9052, allocations: 140.4 MB / 1.089 GB, free: 5.516 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002631/0.9079, allocations: 1.671 MB / 1.09 GB, free: 4.352 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0006917/0.9086, allocations: 449.9 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.845e-05/0.9086, allocations: 1.375 kB / 1.091 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.35e-05/0.9087, allocations: 5.062 kB / 1.091 GB, free: 4.039 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 7.374e-05/0.9088, allocations: 14.78 kB / 1.091 GB, free: 4.027 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001737/0.909, allocations: 31.8 kB / 1.091 GB, free: 4.008 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001259/0.9091, allocations: 85.06 kB / 1.091 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.9092, allocations: 22.95 kB / 1.091 GB, free: 3.957 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001011/0.9093, allocations: 37.48 kB / 1.091 GB, free: 3.938 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 9.122e-05/0.9094, allocations: 42.48 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/0.9094, allocations: 7 kB / 1.091 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 1.753e-05/0.9095, allocations: 10.66 kB / 1.091 GB, free: 3.91 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.399e-05/0.9095, allocations: 13.61 kB / 1.091 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.206e-05/0.9095, allocations: 35.72 kB / 1.091 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000146/0.9097, allocations: 87.22 kB / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.9097, allocations: 0 / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.423e-06/0.9097, allocations: 0 / 1.091 GB, free: 3.844 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.412e-06/0.9097, allocations: 5.062 kB / 1.091 GB, free: 3.84 MB / 0.8575 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.0004643/0.9102, allocations: 390.5 kB / 1.091 GB, free: 3.457 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.618e-05/0.9102, allocations: 13.5 kB / 1.091 GB, free: 3.453 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.363e-05/0.9103, allocations: 10.55 kB / 1.091 GB, free: 3.449 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.774e-05/0.9104, allocations: 182.7 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.9104, allocations: 1.5 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.5e-05/0.9104, allocations: 4.328 kB / 1.092 GB, free: 3.238 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.9106, allocations: 93.45 kB / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-06/0.9107, allocations: 0 / 1.092 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.479e-05/0.9107, allocations: 5.828 kB / 1.092 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.9107, allocations: 4 kB / 1.092 GB, free: 3.164 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001647/0.9109, allocations: 48.45 kB / 1.092 GB, free: 3.152 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004301/0.9113, allocations: 333.6 kB / 1.092 GB, free: 2.84 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001313/0.9114, allocations: 47.64 kB / 1.092 GB, free: 2.809 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.002e-05/0.9115, allocations: 33.44 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.9115, allocations: 1.578 kB / 1.092 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.674e-05/0.9116, allocations: 31.69 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.9116, allocations: 0 / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of matching and sorting (n=4): time 0.0003387/0.9119, allocations: 106.2 kB / 1.092 GB, free: 2.695 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.912, allocations: 81.89 kB / 1.092 GB, free: 2.598 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.445e-05/0.9121, allocations: 132.2 kB / 1.093 GB, free: 2.484 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.367e-05/0.9121, allocations: 27.2 kB / 1.093 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.236e-05/0.9121, allocations: 98.91 kB / 1.093 GB, free: 2.359 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.801e-05/0.9122, allocations: 6.766 kB / 1.093 GB, free: 2.355 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.956e-05/0.9122, allocations: 20.09 kB / 1.093 GB, free: 2.336 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.784e-05/0.9122, allocations: 322.8 kB / 1.093 GB, free: 2.016 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.325e-05/0.9123, allocations: 28.86 kB / 1.093 GB, free: 2.004 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.641e-05/0.9124, allocations: 37.94 kB / 1.093 GB, free: 1.98 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.9126, allocations: 48.11 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.9126, allocations: 0.5938 kB / 1.093 GB, free: 1.961 MB / 0.8575 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000196/0.9128, allocations: 92.56 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.427e-05/0.9128, allocations: 5.188 kB / 1.093 GB, free: 1.906 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.9128, allocations: 5.031 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.9129, allocations: 0 / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.913, allocations: 10.05 kB / 1.093 GB, free: 1.902 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.913, allocations: 5.484 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.102e-05/0.9131, allocations: 14.38 kB / 1.093 GB, free: 1.895 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.9131, allocations: 9.25 kB / 1.093 GB, free: 1.887 MB / 0.8575 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 6.679e-05/0.9131, allocations: 117.3 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.158e-05/0.9132, allocations: 8.422 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.137e-05/0.9132, allocations: 14.89 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.806e-06/0.9132, allocations: 1.406 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.9132, allocations: 0.7812 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.9132, allocations: 0.7969 kB / 1.093 GB, free: 1.75 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.9134, allocations: 190.3 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9134, allocations: 1.812 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.006e-05/0.9135, allocations: 8.609 kB / 1.094 GB, free: 1.543 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.9135, allocations: 5.406 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.9135, allocations: 1.375 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.9135, allocations: 0.7188 kB / 1.094 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.9135, allocations: 4 kB / 1.094 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.9137, allocations: 183.2 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 2.505e-05/0.9138, allocations: 83.95 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.286e-05/0.9138, allocations: 1.812 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001054/0.9139, allocations: 9.812 kB / 1.094 GB, free: 1.285 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.914, allocations: 12.38 kB / 1.094 GB, free: 1.281 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.083e-06/0.914, allocations: 6.328 kB / 1.094 GB, free: 1.277 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 5.011e-05/0.914, allocations: 104.5 kB / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.914, allocations: 0 / 1.094 GB, free: 1.191 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002329/0.9143, allocations: 11.44 kB / 1.094 GB, free: 1.191 MB / 0.8575 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.782e-05/0.9144, allocations: 99.62 kB / 1.094 GB, free: 1.105 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002196/0.9146, allocations: 55 kB / 1.094 GB, free: 1.09 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.9146, allocations: 4.875 kB / 1.094 GB, free: 1.086 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.428e-05/0.9147, allocations: 32.48 kB / 1.094 GB, free: 1.074 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002852/0.915, allocations: 7.797 kB / 1.094 GB, free: 1.07 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003891/0.9154, allocations: 200.6 kB / 1.094 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.9155, allocations: 0.6895 MB / 1.095 GB, free: 204 kB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.389e-05/0.9156, allocations: 12.23 kB / 1.095 GB, free: 196 kB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.9156, allocations: 4 kB / 1.095 GB, free: 192 kB / 0.8575 GB Notification: Performance of Templates: time 0.002965/0.9186, allocations: 1.006 MB / 1.096 GB, free: 108 kB / 0.8575 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