Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.012/2.012, allocations: 391.2 MB / 407 MB, free: 10.83 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 182.8 kB / 499.1 MB, free: 4.645 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 222.9 MB / 0.7948 GB, free: 15.86 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009751/0.0009751, allocations: 99.7 kB / 0.9329 GB, free: 7.102 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 50.81 kB / 1.081 GB, free: 218.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2157, allocations: 140.6 MB / 1.218 GB, free: 117.3 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002637/0.2184, allocations: 1.827 MB / 1.22 GB, free: 115.4 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.001107/0.2195, allocations: 0.9007 MB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.391e-05/0.2196, allocations: 7.938 kB / 1.221 GB, free: 114.5 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.0004029/0.22, allocations: 168.1 kB / 1.221 GB, free: 114.4 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.0002583/0.2203, allocations: 156.5 kB / 1.221 GB, free: 114.2 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003622/0.2207, allocations: 195.2 kB / 1.221 GB, free: 114 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.2209, allocations: 219.5 kB / 1.221 GB, free: 113.8 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001167/0.221, allocations: 61.62 kB / 1.222 GB, free: 113.7 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001199/0.2211, allocations: 87.61 kB / 1.222 GB, free: 113.7 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001415/0.2213, allocations: 139.5 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 3.089e-05/0.2213, allocations: 8 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 7.687e-05/0.2214, allocations: 35.98 kB / 1.222 GB, free: 113.5 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 7.009e-05/0.2215, allocations: 75.73 kB / 1.222 GB, free: 113.4 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 6.498e-05/0.2215, allocations: 99.28 kB / 1.222 GB, free: 113.3 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.2218, allocations: 348.9 kB / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 3.878e-06/0.2218, allocations: 0 / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of FrontEnd: time 8.91e-07/0.2218, allocations: 0 / 1.222 GB, free: 113 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.971e-06/0.2218, allocations: 0 / 1.222 GB, free: 113 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006097/0.2224, allocations: 0.5992 MB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.253e-05/0.2225, allocations: 11.98 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.508e-05/0.2225, allocations: 36.47 kB / 1.223 GB, free: 112.3 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003912/0.2229, allocations: 406.4 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.953e-06/0.2229, allocations: 8.375 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.371e-05/0.2229, allocations: 4.125 kB / 1.223 GB, free: 111.8 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001339/0.2231, allocations: 85.53 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.715e-06/0.2231, allocations: 0 / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-06/0.2231, allocations: 4 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.2231, allocations: 4 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001013/0.2232, allocations: 47.97 kB / 1.223 GB, free: 111.7 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004356/0.2237, allocations: 488.3 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 9.803e-05/0.2238, allocations: 50.56 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.367e-05/0.2238, allocations: 20.91 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.2239, allocations: 3.984 kB / 1.224 GB, free: 111.1 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.327e-06/0.2239, allocations: 30.56 kB / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of pre-optimization done (n=3): time 1.503e-06/0.2239, allocations: 0 / 1.224 GB, free: 111 MB / 0.823 GB Notification: Performance of matching and sorting (n=3): time 0.0002204/0.2241, allocations: 109.2 kB / 1.224 GB, free: 110.9 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.921e-05/0.2241, allocations: 59.39 kB / 1.224 GB, free: 110.8 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004409/0.2246, allocations: 0.5446 MB / 1.225 GB, free: 110.3 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 8.185e-06/0.2246, allocations: 33.7 kB / 1.225 GB, free: 110.2 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/0.2247, allocations: 171.9 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.2247, allocations: 7.906 kB / 1.225 GB, free: 110.1 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.079e-05/0.2248, allocations: 17.7 kB / 1.225 GB, free: 110 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 5.718e-05/0.2248, allocations: 342.8 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.767e-05/0.2249, allocations: 19.92 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.259e-05/0.2249, allocations: 8 kB / 1.225 GB, free: 109.7 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.582e-05/0.225, allocations: 44.77 kB / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.225, allocations: 112 / 1.225 GB, free: 109.6 MB / 0.823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001342/0.2252, allocations: 89.25 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.2252, allocations: 4 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.2252, allocations: 3.984 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.2252, allocations: 3.938 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.576e-05/0.2253, allocations: 4 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.2253, allocations: 8 kB / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.735e-05/0.2254, allocations: 0 / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.2254, allocations: 0 / 1.225 GB, free: 109.5 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.0001021/0.2255, allocations: 187 kB / 1.226 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.371e-05/0.2255, allocations: 27.62 kB / 1.226 GB, free: 109.3 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001764/0.2257, allocations: 100.1 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.2257, allocations: 3.938 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.2257, allocations: 8 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.2257, allocations: 7.984 kB / 1.226 GB, free: 109.2 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001861/0.2259, allocations: 281.5 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2259, allocations: 384 / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.179e-05/0.226, allocations: 4 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.226, allocations: 4 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/0.226, allocations: 3.984 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.226, allocations: 3.938 kB / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.226, allocations: 0 / 1.226 GB, free: 108.8 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.2263, allocations: 0.8052 MB / 1.227 GB, free: 108 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.244e-05/0.2264, allocations: 120.7 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.391e-05/0.2265, allocations: 4 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.209e-05/0.2265, allocations: 0 / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.2266, allocations: 7.984 kB / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.807e-06/0.2266, allocations: 0 / 1.227 GB, free: 107.8 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.000292/0.2269, allocations: 423 kB / 1.227 GB, free: 107.4 MB / 0.823 GB Notification: Performance of sort global known variables: time 1.21e-07/0.2269, allocations: 0 / 1.227 GB, free: 107.4 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0003237/0.2272, allocations: 24 kB / 1.227 GB, free: 107.4 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000665/0.2279, allocations: 360.9 kB / 1.228 GB, free: 107.1 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.0001259/0.228, allocations: 31.97 kB / 1.228 GB, free: 107.1 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.228, allocations: 0 / 1.228 GB, free: 107.1 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 4.33e-05/0.2281, allocations: 12 kB / 1.228 GB, free: 107.1 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.2285, allocations: 55.16 kB / 1.228 GB, free: 107.1 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006225/0.2291, allocations: 0.6758 MB / 1.228 GB, free: 106.3 MB / 0.823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001632/0.2293, allocations: 0.7912 MB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of simCode: alias equations: time 9.01e-05/0.2294, allocations: 50.92 kB / 1.229 GB, free: 105.5 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.55e-05/0.2294, allocations: 23.42 kB / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of SimCode: time 2.2e-07/0.2295, allocations: 0 / 1.229 GB, free: 105.4 MB / 0.823 GB Notification: Performance of Templates: time 0.004381/0.2338, allocations: 2.435 MB / 1.232 GB, free: 103.1 MB / 0.823 GB make -j1 -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.makefile (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & ./Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)