Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00143/0.00143, allocations: 80.3 kB / 19.18 MB, free: 2.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 159.5 kB / 22.45 MB, free: 5.375 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.481/1.481, allocations: 177.1 MB / 202.8 MB, free: 9.172 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.843/2.843, allocations: 377.8 MB / 0.6221 GB, free: 12.63 MB / 0.5919 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|chiSwi.TSet|chiSwi.chiCHWST|chiSwi.y",fileNamePrefix="Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.455e-06/2.455e-06, allocations: 0 / 0.9814 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.586e-05/2.831e-05, allocations: 2.281 kB / 0.9814 GB, free: 10.96 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003249/0.003277, allocations: 1.689 MB / 0.9831 GB, free: 9.254 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001016/0.004294, allocations: 0.4947 MB / 0.9836 GB, free: 8.758 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.381e-05/0.004367, allocations: 0 / 0.9836 GB, free: 8.758 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.097e-05/0.004408, allocations: 15.86 kB / 0.9836 GB, free: 8.742 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 8.483e-05/0.004493, allocations: 15.8 kB / 0.9836 GB, free: 8.727 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002751/0.004768, allocations: 39.95 kB / 0.9836 GB, free: 8.688 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.000166/0.004934, allocations: 95.62 kB / 0.9837 GB, free: 8.594 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001221/0.005056, allocations: 20.16 kB / 0.9837 GB, free: 8.57 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001714/0.005228, allocations: 55.89 kB / 0.9838 GB, free: 8.516 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.162e-05/0.005299, allocations: 19.97 kB / 0.9838 GB, free: 8.496 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.844e-05/0.005328, allocations: 8 kB / 0.9838 GB, free: 8.488 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 5.709e-05/0.005385, allocations: 15.94 kB / 0.9838 GB, free: 8.473 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 3.634e-05/0.005421, allocations: 23.91 kB / 0.9839 GB, free: 8.449 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.457e-05/0.005466, allocations: 27.92 kB / 0.9839 GB, free: 8.422 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0001808/0.005647, allocations: 91.73 kB / 0.984 GB, free: 8.332 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.005649, allocations: 0 / 0.984 GB, free: 8.332 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.182e-06/0.005651, allocations: 0 / 0.984 GB, free: 8.332 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.00566, allocations: 0 / 0.984 GB, free: 8.332 MB / 0.8887 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.0006008/0.00626, allocations: 321.9 kB / 0.9843 GB, free: 7.988 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.274e-05/0.006303, allocations: 12.03 kB / 0.9843 GB, free: 7.977 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002233/0.006526, allocations: 32.86 kB / 0.9843 GB, free: 7.945 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.006785, allocations: 141.5 kB / 0.9845 GB, free: 7.781 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.278e-05/0.006797, allocations: 4.375 kB / 0.9845 GB, free: 7.777 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.652e-05/0.006814, allocations: 4.375 kB / 0.9845 GB, free: 7.773 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002637/0.007078, allocations: 125.6 kB / 0.9846 GB, free: 7.633 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.007086, allocations: 4.125 kB / 0.9846 GB, free: 7.629 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.007101, allocations: 4.125 kB / 0.9846 GB, free: 7.625 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.007105, allocations: 0 / 0.9846 GB, free: 7.625 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.007271, allocations: 51.97 kB / 0.9846 GB, free: 7.574 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004758/0.007746, allocations: 260.3 kB / 0.9849 GB, free: 7.289 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.007917, allocations: 50.56 kB / 0.9849 GB, free: 7.23 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.011e-05/0.008007, allocations: 24.94 kB / 0.985 GB, free: 7.203 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.884e-05/0.008026, allocations: 0 / 0.985 GB, free: 7.203 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.494e-05/0.008061, allocations: 34.55 kB / 0.985 GB, free: 7.16 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 1.092e-06/0.008062, allocations: 7.938 kB / 0.985 GB, free: 7.152 MB / 0.8887 GB Notification: Performance of matching and sorting (n=4): time 0.0003626/0.008425, allocations: 105.6 kB / 0.9851 GB, free: 7.043 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.693e-05/0.008482, allocations: 77.11 kB / 0.9852 GB, free: 6.949 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001342/0.008616, allocations: 135.5 kB / 0.9853 GB, free: 6.809 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.008642, allocations: 29.7 kB / 0.9853 GB, free: 6.773 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 7.3e-05/0.008715, allocations: 96.12 kB / 0.9854 GB, free: 6.676 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 2.167e-05/0.008736, allocations: 7.906 kB / 0.9854 GB, free: 6.668 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.893e-05/0.008785, allocations: 25.7 kB / 0.9855 GB, free: 6.637 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001523/0.008938, allocations: 322.8 kB / 0.9858 GB, free: 6.312 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.339e-05/0.009021, allocations: 23.98 kB / 0.9858 GB, free: 6.289 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001053/0.009126, allocations: 63.41 kB / 0.9859 GB, free: 6.215 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001491/0.009275, allocations: 48.83 kB / 0.9859 GB, free: 6.164 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.009277, allocations: 0 / 0.9859 GB, free: 6.164 MB / 0.8887 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002075/0.009485, allocations: 89.75 kB / 0.986 GB, free: 6.07 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.009499, allocations: 4 kB / 0.986 GB, free: 6.066 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.009503, allocations: 4.031 kB / 0.986 GB, free: 6.062 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.009517, allocations: 0 / 0.986 GB, free: 6.062 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.009635, allocations: 19.97 kB / 0.986 GB, free: 6.043 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.00964, allocations: 0 / 0.986 GB, free: 6.043 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.199e-05/0.009722, allocations: 15.92 kB / 0.986 GB, free: 6.027 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.223e-06/0.009729, allocations: 0 / 0.986 GB, free: 6.027 MB / 0.8887 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 0.0001082/0.009838, allocations: 121.8 kB / 0.9861 GB, free: 5.898 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.952e-05/0.009867, allocations: 3.953 kB / 0.9861 GB, free: 5.895 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.781e-05/0.009905, allocations: 16.33 kB / 0.9862 GB, free: 5.875 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.009907, allocations: 4 kB / 0.9862 GB, free: 5.871 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.009911, allocations: 192 / 0.9862 GB, free: 5.871 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.009914, allocations: 0 / 0.9862 GB, free: 5.871 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001699/0.01008, allocations: 145.2 kB / 0.9863 GB, free: 5.699 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.01008, allocations: 0 / 0.9863 GB, free: 5.699 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.433e-05/0.01016, allocations: 15.92 kB / 0.9863 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.01016, allocations: 0 / 0.9863 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.297e-06/0.01017, allocations: 0 / 0.9863 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.01017, allocations: 0 / 0.9863 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.01017, allocations: 0 / 0.9863 GB, free: 5.684 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002606/0.01043, allocations: 183.4 kB / 0.9865 GB, free: 5.488 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 1.563e-05/0.01045, allocations: 7.953 kB / 0.9865 GB, free: 5.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.01047, allocations: 0 / 0.9865 GB, free: 5.48 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.01058, allocations: 11.98 kB / 0.9865 GB, free: 5.469 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.858e-05/0.01063, allocations: 11.98 kB / 0.9865 GB, free: 5.457 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.644e-06/0.01064, allocations: 3.984 kB / 0.9865 GB, free: 5.453 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 7.573e-05/0.01072, allocations: 105 kB / 0.9866 GB, free: 5.352 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1e-07/0.01072, allocations: 0 / 0.9866 GB, free: 5.352 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0002283/0.01095, allocations: 19.89 kB / 0.9866 GB, free: 5.332 MB / 0.8887 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.0001271/0.01107, allocations: 103.2 kB / 0.9867 GB, free: 5.223 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.0002165/0.01129, allocations: 51.95 kB / 0.9868 GB, free: 5.172 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.01129, allocations: 4 kB / 0.9868 GB, free: 5.168 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 8.585e-05/0.01138, allocations: 23.98 kB / 0.9868 GB, free: 5.145 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002482/0.01163, allocations: 7.938 kB / 0.9868 GB, free: 5.137 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004148/0.01204, allocations: 181.4 kB / 0.987 GB, free: 4.934 MB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.08e-05/0.01212, allocations: 79.89 kB / 0.9871 GB, free: 4.832 MB / 0.8887 GB Notification: Performance of simCode: alias equations: time 4.093e-05/0.01216, allocations: 8.125 kB / 0.9871 GB, free: 4.824 MB / 0.8887 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.213e-05/0.01221, allocations: 12.5 kB / 0.9871 GB, free: 4.812 MB / 0.8887 GB Notification: Performance of SimCode: time 4.11e-07/0.01221, allocations: 0 / 0.9871 GB, free: 4.812 MB / 0.8887 GB Notification: Performance of Templates: time 0.003881/0.01609, allocations: 0.9236 MB / 0.988 GB, free: 3.918 MB / 0.8887 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & ./Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.851252187043428]