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.00085/0.00085, allocations: 76.55 kB / 19.93 MB, free: 4.637 MB / 18.57 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.0008366/0.0008366, allocations: 177.9 kB / 23.21 MB, free: 1.355 MB / 18.57 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 0.87/0.87, allocations: 177.2 MB / 203.5 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.706/1.706, allocations: 377.9 MB / 0.6228 GB, free: 8.645 MB / 0.5886 GB " [Timeout remaining time 178] 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 1.342e-06/1.342e-06, allocations: 3.938 kB / 0.9822 GB, free: 2.082 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.429e-05, allocations: 2.281 kB / 0.9822 GB, free: 2.078 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.001992/0.002016, allocations: 1.691 MB / 0.9838 GB, free: 384 kB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0006941/0.00271, allocations: 0.4987 MB / 0.9843 GB, free: 15.87 MB / 0.948 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.433e-05/0.002775, allocations: 3.938 kB / 0.9843 GB, free: 15.87 MB / 0.948 GB Notification: Performance of NFTyping.typeComponents: time 3.161e-05/0.002806, allocations: 3.938 kB / 0.9843 GB, free: 15.86 MB / 0.948 GB Notification: Performance of NFTyping.typeBindings: time 7.287e-05/0.002879, allocations: 15.81 kB / 0.9843 GB, free: 15.85 MB / 0.948 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002403/0.003119, allocations: 51.86 kB / 0.9844 GB, free: 15.8 MB / 0.948 GB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.003246, allocations: 83.66 kB / 0.9845 GB, free: 15.71 MB / 0.948 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000112/0.003358, allocations: 24.2 kB / 0.9845 GB, free: 15.69 MB / 0.948 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001392/0.003498, allocations: 51.84 kB / 0.9846 GB, free: 15.64 MB / 0.948 GB Notification: Performance of NFSimplifyModel.simplify: time 6.429e-05/0.003562, allocations: 35.89 kB / 0.9846 GB, free: 15.6 MB / 0.948 GB Notification: Performance of NFPackage.collectConstants: time 1.746e-05/0.003579, allocations: 4 kB / 0.9846 GB, free: 15.6 MB / 0.948 GB Notification: Performance of NFFlatten.collectFunctions: time 4.282e-05/0.003622, allocations: 15.94 kB / 0.9846 GB, free: 15.58 MB / 0.948 GB Notification: Performance of NFScalarize.scalarize: time 1.64e-05/0.003638, allocations: 15.92 kB / 0.9846 GB, free: 15.57 MB / 0.948 GB Notification: Performance of NFVerifyModel.verify: time 2.821e-05/0.003667, allocations: 23.97 kB / 0.9846 GB, free: 15.54 MB / 0.948 GB Notification: Performance of NFConvertDAE.convert: time 0.0001482/0.003815, allocations: 99.61 kB / 0.9847 GB, free: 15.45 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 2.455e-06/0.003817, allocations: 0 / 0.9847 GB, free: 15.45 MB / 0.948 GB Notification: Performance of FrontEnd: time 7.32e-07/0.003818, allocations: 0 / 0.9847 GB, free: 15.45 MB / 0.948 GB Notification: Performance of Transformations before backend: time 4.368e-06/0.003823, allocations: 0 / 0.9847 GB, free: 15.45 MB / 0.948 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.0004494/0.004272, allocations: 329.9 kB / 0.9851 GB, free: 15.09 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.00431, allocations: 8.031 kB / 0.9851 GB, free: 15.09 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001395/0.004449, allocations: 24.88 kB / 0.9851 GB, free: 15.06 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.004631, allocations: 141.6 kB / 0.9852 GB, free: 14.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.117e-05/0.004642, allocations: 4.359 kB / 0.9852 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.004655, allocations: 4.375 kB / 0.9852 GB, free: 14.89 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001709/0.004825, allocations: 113.6 kB / 0.9853 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.158e-06/0.004835, allocations: 192 / 0.9853 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.276e-05/0.004847, allocations: 4.375 kB / 0.9853 GB, free: 14.76 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.071e-06/0.004853, allocations: 7.938 kB / 0.9853 GB, free: 14.75 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.933e-05/0.004953, allocations: 47.91 kB / 0.9854 GB, free: 14.7 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003355/0.005288, allocations: 256.4 kB / 0.9856 GB, free: 14.42 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 9.978e-05/0.005388, allocations: 58.53 kB / 0.9857 GB, free: 14.36 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.655e-05/0.005435, allocations: 28.94 kB / 0.9857 GB, free: 14.32 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 1.633e-05/0.005451, allocations: 3.984 kB / 0.9857 GB, free: 14.32 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.247e-05/0.005473, allocations: 34.56 kB / 0.9858 GB, free: 14.28 MB / 0.948 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.005474, allocations: 0 / 0.9858 GB, free: 14.28 MB / 0.948 GB Notification: Performance of matching and sorting (n=4): time 0.0002337/0.005708, allocations: 97.61 kB / 0.9859 GB, free: 14.18 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.005747, allocations: 77.11 kB / 0.9859 GB, free: 14.08 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.192e-05/0.005829, allocations: 140.6 kB / 0.9861 GB, free: 13.94 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.336e-05/0.005842, allocations: 29.7 kB / 0.9861 GB, free: 13.9 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 4.805e-05/0.00589, allocations: 100 kB / 0.9862 GB, free: 13.8 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.876e-05/0.005909, allocations: 15.94 kB / 0.9862 GB, free: 13.79 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.00594, allocations: 17.72 kB / 0.9862 GB, free: 13.76 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 8.458e-05/0.006024, allocations: 322.8 kB / 0.9865 GB, free: 13.44 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.372e-05/0.006068, allocations: 19.98 kB / 0.9865 GB, free: 13.42 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.752e-05/0.006125, allocations: 63.41 kB / 0.9866 GB, free: 13.34 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.06e-05/0.006206, allocations: 52.77 kB / 0.9867 GB, free: 13.29 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.006208, allocations: 0 / 0.9867 GB, free: 13.29 MB / 0.948 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001109/0.006319, allocations: 85.66 kB / 0.9867 GB, free: 13.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.006331, allocations: 7.938 kB / 0.9867 GB, free: 13.19 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.006336, allocations: 7.938 kB / 0.9867 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.006348, allocations: 0 / 0.9867 GB, free: 13.18 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.532e-05/0.006413, allocations: 15.92 kB / 0.9868 GB, free: 13.17 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.006418, allocations: 4.188 kB / 0.9868 GB, free: 13.16 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.804e-05/0.006456, allocations: 20.06 kB / 0.9868 GB, free: 13.14 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.923e-06/0.006463, allocations: 4 kB / 0.9868 GB, free: 13.14 MB / 0.948 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.651e-05/0.00653, allocations: 125.8 kB / 0.9869 GB, free: 13.01 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/0.006545, allocations: 7.984 kB / 0.9869 GB, free: 13 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.325e-05/0.006569, allocations: 8.344 kB / 0.9869 GB, free: 12.99 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.006572, allocations: 4 kB / 0.9869 GB, free: 12.99 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.626e-06/0.006576, allocations: 0 / 0.9869 GB, free: 12.99 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.006579, allocations: 0 / 0.9869 GB, free: 12.99 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001026/0.006682, allocations: 133.2 kB / 0.9871 GB, free: 12.83 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.006683, allocations: 0 / 0.9871 GB, free: 12.83 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.96e-05/0.006712, allocations: 11.98 kB / 0.9871 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-06/0.006714, allocations: 0 / 0.9871 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.00672, allocations: 0 / 0.9871 GB, free: 12.82 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.51e-07/0.006721, allocations: 4 kB / 0.9871 GB, free: 12.81 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.006722, allocations: 4 kB / 0.9871 GB, free: 12.81 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001368/0.006859, allocations: 183.3 kB / 0.9873 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 8.847e-06/0.006867, allocations: 3.953 kB / 0.9873 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.622e-05/0.006884, allocations: 4 kB / 0.9873 GB, free: 12.61 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.236e-05/0.006936, allocations: 7.984 kB / 0.9873 GB, free: 12.6 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.746e-05/0.006983, allocations: 15.97 kB / 0.9873 GB, free: 12.58 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-06/0.006988, allocations: 4 kB / 0.9873 GB, free: 12.58 MB / 0.948 GB Notification: Performance of sorting global known variables: time 4.495e-05/0.007033, allocations: 103.2 kB / 0.9874 GB, free: 12.48 MB / 0.948 GB Notification: Performance of sort global known variables: time 6e-08/0.007033, allocations: 4 kB / 0.9874 GB, free: 12.47 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000145/0.007178, allocations: 12 kB / 0.9874 GB, free: 12.46 MB / 0.948 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 7.453e-05/0.007253, allocations: 95.25 kB / 0.9875 GB, free: 12.36 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001391/0.007392, allocations: 59.89 kB / 0.9875 GB, free: 12.3 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.007393, allocations: 0 / 0.9875 GB, free: 12.3 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 4.253e-05/0.007436, allocations: 27.98 kB / 0.9876 GB, free: 12.27 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001679/0.007604, allocations: 10.12 kB / 0.9876 GB, free: 12.26 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003048/0.007909, allocations: 199.1 kB / 0.9878 GB, free: 12.04 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.659e-05/0.007965, allocations: 83.81 kB / 0.9879 GB, free: 11.93 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.886e-05/0.008004, allocations: 12.5 kB / 0.9879 GB, free: 11.92 MB / 0.948 GB Notification: Performance of SimCode: time 3.8e-07/0.008005, allocations: 0 / 0.9879 GB, free: 11.92 MB / 0.948 GB Notification: Performance of Templates: time 0.001895/0.009899, allocations: 1.086 MB / 0.9889 GB, free: 10.84 MB / 0.948 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: 6.64874772541225]