Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.005072/0.005072, allocations: 100.8 kB / 15.73 MB, free: 6.445 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.001164/0.001165, allocations: 191.1 kB / 16.67 MB, free: 6.348 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.419/1.419, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.669/2.669, allocations: 437 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001493/0.001493, allocations: 67.89 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3495/0.351, allocations: 151.6 MB / 1.167 GB, free: 6.793 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003282/0.3544, allocations: 1.667 MB / 1.168 GB, free: 5.102 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.0008755/0.3553, allocations: 443 kB / 1.169 GB, free: 4.664 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.193e-05/0.3554, allocations: 4 kB / 1.169 GB, free: 4.66 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.425e-05/0.3554, allocations: 7.875 kB / 1.169 GB, free: 4.652 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0001057/0.3556, allocations: 19.8 kB / 1.169 GB, free: 4.633 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002305/0.3558, allocations: 31.95 kB / 1.169 GB, free: 4.602 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0001377/0.3559, allocations: 79.72 kB / 1.169 GB, free: 4.523 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001394/0.3561, allocations: 23.98 kB / 1.169 GB, free: 4.5 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001364/0.3562, allocations: 31.86 kB / 1.169 GB, free: 4.469 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.3563, allocations: 47.77 kB / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 2.642e-05/0.3564, allocations: 12 kB / 1.169 GB, free: 4.41 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 1.725e-05/0.3564, allocations: 4 kB / 1.169 GB, free: 4.406 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 3.022e-05/0.3564, allocations: 15.98 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 5.313e-05/0.3565, allocations: 31.8 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000162/0.3567, allocations: 95.5 kB / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3567, allocations: 0 / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.204e-06/0.3567, allocations: 0 / 1.169 GB, free: 4.266 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.823e-06/0.3567, allocations: 0 / 1.169 GB, free: 4.266 MB / 0.92 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.0006113/0.3573, allocations: 399.1 kB / 1.169 GB, free: 3.828 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.3574, allocations: 8.031 kB / 1.169 GB, free: 3.82 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.203e-05/0.3574, allocations: 8.891 kB / 1.169 GB, free: 3.812 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.3576, allocations: 180.2 kB / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.3576, allocations: 384 / 1.17 GB, free: 3.598 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.3576, allocations: 12.36 kB / 1.17 GB, free: 3.586 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000222/0.3579, allocations: 91.67 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3579, allocations: 0 / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.3579, allocations: 8 kB / 1.17 GB, free: 3.477 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.3579, allocations: 4 kB / 1.17 GB, free: 3.473 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001621/0.3581, allocations: 47.91 kB / 1.17 GB, free: 3.426 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005288/0.3586, allocations: 332.7 kB / 1.17 GB, free: 3.051 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.3588, allocations: 58.59 kB / 1.17 GB, free: 2.984 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.68e-05/0.3589, allocations: 24.94 kB / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.004e-05/0.3589, allocations: 0 / 1.17 GB, free: 2.957 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.653e-05/0.3589, allocations: 30.56 kB / 1.17 GB, free: 2.918 MB / 0.92 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.3589, allocations: 4 kB / 1.17 GB, free: 2.914 MB / 0.92 GB Notification: Performance of matching and sorting (n=4): time 0.0003578/0.3593, allocations: 101.6 kB / 1.17 GB, free: 2.809 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.456e-05/0.3593, allocations: 81.11 kB / 1.17 GB, free: 2.711 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.3595, allocations: 139.8 kB / 1.171 GB, free: 2.562 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.3595, allocations: 25.7 kB / 1.171 GB, free: 2.531 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 6.637e-05/0.3596, allocations: 100.1 kB / 1.171 GB, free: 2.43 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 2.309e-05/0.3596, allocations: 19.84 kB / 1.171 GB, free: 2.41 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.177e-05/0.3596, allocations: 13.72 kB / 1.171 GB, free: 2.391 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001201/0.3598, allocations: 322.8 kB / 1.171 GB, free: 2.066 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.096e-05/0.3599, allocations: 31.98 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.929e-05/0.3599, allocations: 33.7 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001423/0.3601, allocations: 44.83 kB / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.3601, allocations: 0 / 1.171 GB, free: 1.949 MB / 0.92 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001998/0.3603, allocations: 89.66 kB / 1.171 GB, free: 1.855 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.3603, allocations: 11.97 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.952e-06/0.3603, allocations: 3.938 kB / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.444e-05/0.3604, allocations: 0 / 1.171 GB, free: 1.84 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001055/0.3605, allocations: 8 kB / 1.171 GB, free: 1.832 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.3605, allocations: 3.984 kB / 1.171 GB, free: 1.828 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.928e-05/0.3606, allocations: 11.95 kB / 1.171 GB, free: 1.816 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.202e-05/0.3606, allocations: 7.922 kB / 1.171 GB, free: 1.809 MB / 0.92 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 8.684e-05/0.3607, allocations: 113.8 kB / 1.171 GB, free: 1.688 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.218e-05/0.3607, allocations: 11.95 kB / 1.171 GB, free: 1.676 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.331e-05/0.3608, allocations: 12.25 kB / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.3608, allocations: 0 / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3608, allocations: 0 / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3608, allocations: 0 / 1.171 GB, free: 1.66 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001968/0.361, allocations: 193.6 kB / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.361, allocations: 192 / 1.172 GB, free: 1.422 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.048e-05/0.3611, allocations: 11.98 kB / 1.172 GB, free: 1.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3611, allocations: 4 kB / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.919e-06/0.3611, allocations: 0 / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3611, allocations: 0 / 1.172 GB, free: 1.406 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3611, allocations: 4 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002382/0.3614, allocations: 183.5 kB / 1.172 GB, free: 1.207 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.808e-05/0.3614, allocations: 77.16 kB / 1.172 GB, free: 1.113 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.491e-05/0.3614, allocations: 11.98 kB / 1.172 GB, free: 1.102 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001014/0.3615, allocations: 7.984 kB / 1.172 GB, free: 1.094 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.681e-05/0.3616, allocations: 11.98 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.846e-06/0.3616, allocations: 11.92 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of sorting global known variables: time 6.881e-05/0.3617, allocations: 105.3 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3617, allocations: 0 / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002327/0.3619, allocations: 15.95 kB / 1.172 GB, free: 0.9531 MB / 0.92 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.0001121/0.3621, allocations: 103.2 kB / 1.172 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000223/0.3623, allocations: 55.91 kB / 1.172 GB, free: 0.7891 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.3623, allocations: 4 kB / 1.172 GB, free: 0.7852 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 9.04e-05/0.3624, allocations: 27.97 kB / 1.172 GB, free: 0.7578 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.3627, allocations: 8 kB / 1.172 GB, free: 0.75 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000396/0.3631, allocations: 171 kB / 1.172 GB, free: 0.5547 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002614/0.3634, allocations: 0.6885 MB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 4.832e-05/0.3634, allocations: 11.94 kB / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.605e-05/0.3635, allocations: 19.42 kB / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of SimCode: time 2.81e-07/0.3635, allocations: 0 / 1.173 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of Templates: time 0.003359/0.3669, allocations: 0.8862 MB / 1.174 GB, free: 14.94 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches