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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001516/0.001516, allocations: 117.5 kB / 16.37 MB, free: 6.016 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.001623/0.001623, allocations: 189.7 kB / 17.3 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.33/1.33, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.454/2.454, allocations: 437.1 MB / 0.7112 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001254/0.001254, allocations: 64.78 kB / 0.8707 GB, free: 1.426 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3065, allocations: 151.6 MB / 1.019 GB, free: 9.836 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003086/0.3096, allocations: 1.677 MB / 1.02 GB, free: 8.137 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0006956/0.3103, allocations: 448.4 kB / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.505e-05/0.3104, allocations: 0 / 1.021 GB, free: 7.695 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 3.145e-05/0.3104, allocations: 11.86 kB / 1.021 GB, free: 7.684 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 7.412e-05/0.3105, allocations: 19.86 kB / 1.021 GB, free: 7.664 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001781/0.3107, allocations: 31.91 kB / 1.021 GB, free: 7.633 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.000107/0.3108, allocations: 83.7 kB / 1.021 GB, free: 7.551 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.3109, allocations: 16 kB / 1.021 GB, free: 7.535 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.519e-05/0.311, allocations: 43.89 kB / 1.021 GB, free: 7.492 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 8.255e-05/0.3111, allocations: 35.84 kB / 1.021 GB, free: 7.457 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 2.268e-05/0.3112, allocations: 11.94 kB / 1.021 GB, free: 7.445 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 1.681e-05/0.3112, allocations: 11.94 kB / 1.021 GB, free: 7.434 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 2.479e-05/0.3112, allocations: 11.98 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 4.932e-05/0.3113, allocations: 35.8 kB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.3114, allocations: 83.64 kB / 1.021 GB, free: 7.305 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.3114, allocations: 0 / 1.021 GB, free: 7.305 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3114, allocations: 0 / 1.021 GB, free: 7.305 MB / 0.795 GB Notification: Performance of Transformations before backend: time 8.095e-06/0.3114, allocations: 0 / 1.021 GB, free: 7.305 MB / 0.795 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.0005052/0.3119, allocations: 403.1 kB / 1.022 GB, free: 6.863 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.312, allocations: 12.92 kB / 1.022 GB, free: 6.852 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.597e-05/0.312, allocations: 8.844 kB / 1.022 GB, free: 6.844 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001301/0.3122, allocations: 180.2 kB / 1.022 GB, free: 6.629 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.44e-05/0.3122, allocations: 4.375 kB / 1.022 GB, free: 6.625 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.3122, allocations: 8.312 kB / 1.022 GB, free: 6.617 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001875/0.3124, allocations: 91.69 kB / 1.022 GB, free: 6.516 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.3124, allocations: 4 kB / 1.022 GB, free: 6.512 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.3124, allocations: 4 kB / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.3124, allocations: 0 / 1.022 GB, free: 6.508 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001501/0.3126, allocations: 47.91 kB / 1.022 GB, free: 6.461 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004456/0.313, allocations: 320.7 kB / 1.022 GB, free: 6.098 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001298/0.3132, allocations: 58.59 kB / 1.022 GB, free: 6.031 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.821e-05/0.3133, allocations: 24.94 kB / 1.022 GB, free: 6.004 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.3133, allocations: 4 kB / 1.022 GB, free: 6 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.3133, allocations: 34.55 kB / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 1.122e-06/0.3133, allocations: 0 / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of matching and sorting (n=4): time 0.0003085/0.3136, allocations: 101.6 kB / 1.022 GB, free: 5.852 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.782e-05/0.3137, allocations: 77.11 kB / 1.023 GB, free: 5.758 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.155e-05/0.3138, allocations: 132.1 kB / 1.023 GB, free: 5.617 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.562e-05/0.3138, allocations: 29.7 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.164e-05/0.3139, allocations: 96.12 kB / 1.023 GB, free: 5.484 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/0.3139, allocations: 15.75 kB / 1.023 GB, free: 5.469 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.137e-05/0.314, allocations: 17.7 kB / 1.023 GB, free: 5.445 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 8.884e-05/0.314, allocations: 330.7 kB / 1.023 GB, free: 5.113 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.852e-05/0.3141, allocations: 23.98 kB / 1.023 GB, free: 5.09 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.054e-05/0.3142, allocations: 41.69 kB / 1.023 GB, free: 5.043 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001256/0.3144, allocations: 52.89 kB / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.3144, allocations: 0 / 1.023 GB, free: 4.988 MB / 0.795 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001798/0.3145, allocations: 89.61 kB / 1.023 GB, free: 4.895 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.3146, allocations: 4 kB / 1.023 GB, free: 4.891 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3146, allocations: 4 kB / 1.023 GB, free: 4.887 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.3146, allocations: 0 / 1.023 GB, free: 4.887 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.9e-05/0.3147, allocations: 11.92 kB / 1.023 GB, free: 4.875 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.3147, allocations: 4 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.242e-05/0.3148, allocations: 11.92 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.139e-05/0.3148, allocations: 7.938 kB / 1.023 GB, free: 4.852 MB / 0.795 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.402e-05/0.3149, allocations: 118 kB / 1.024 GB, free: 4.727 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.072e-05/0.3149, allocations: 11.89 kB / 1.024 GB, free: 4.715 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.743e-05/0.315, allocations: 8.25 kB / 1.024 GB, free: 4.707 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.315, allocations: 3.984 kB / 1.024 GB, free: 4.703 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.315, allocations: 0 / 1.024 GB, free: 4.703 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.315, allocations: 0 / 1.024 GB, free: 4.703 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000179/0.3152, allocations: 189.6 kB / 1.024 GB, free: 4.469 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.324e-06/0.3152, allocations: 3.984 kB / 1.024 GB, free: 4.465 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.843e-05/0.3153, allocations: 8 kB / 1.024 GB, free: 4.457 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3153, allocations: 0 / 1.024 GB, free: 4.457 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.3153, allocations: 7.984 kB / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.3153, allocations: 0 / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3153, allocations: 0 / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002152/0.3155, allocations: 183.3 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 3.92e-05/0.3156, allocations: 85.02 kB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.3156, allocations: 0 / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.3157, allocations: 20.05 kB / 1.024 GB, free: 4.133 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.871e-05/0.3158, allocations: 11.98 kB / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.18e-06/0.3158, allocations: 0 / 1.024 GB, free: 4.121 MB / 0.795 GB Notification: Performance of sorting global known variables: time 6.903e-05/0.3159, allocations: 105.3 kB / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3159, allocations: 0 / 1.024 GB, free: 4.02 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002276/0.3161, allocations: 15.94 kB / 1.024 GB, free: 4.004 MB / 0.795 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.0001154/0.3162, allocations: 99.25 kB / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0002177/0.3164, allocations: 59.89 kB / 1.024 GB, free: 3.836 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 1.562e-06/0.3164, allocations: 4 kB / 1.024 GB, free: 3.832 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 7.923e-05/0.3165, allocations: 27.98 kB / 1.024 GB, free: 3.805 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002706/0.3168, allocations: 7.938 kB / 1.024 GB, free: 3.797 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000384/0.3172, allocations: 171.2 kB / 1.024 GB, free: 3.602 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002455/0.3175, allocations: 0.6924 MB / 1.025 GB, free: 2.883 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 4.184e-05/0.3175, allocations: 7.984 kB / 1.025 GB, free: 2.875 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.554e-05/0.3175, allocations: 7.438 kB / 1.025 GB, free: 2.867 MB / 0.795 GB Notification: Performance of SimCode: time 2.5e-07/0.3176, allocations: 4 kB / 1.025 GB, free: 2.863 MB / 0.795 GB Notification: Performance of Templates: time 0.003104/0.3207, allocations: 0.8861 MB / 1.026 GB, free: 1.996 MB / 0.795 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 -s gbode -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/jenkins1/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