Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.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: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006331/0.006331, allocations: 95.98 kB / 15.73 MB, free: 6.039 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.001759/0.001759, allocations: 200.9 kB / 16.68 MB, free: 5.969 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.305/1.305, allocations: 222.9 MB / 240.4 MB, free: 4.293 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.442/2.442, allocations: 437.1 MB / 0.7106 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001687/0.001687, allocations: 67.89 kB / 1.018 GB, free: 15 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2337, allocations: 151.6 MB / 1.166 GB, free: 7.258 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.00261/0.2363, allocations: 1.768 MB / 1.168 GB, free: 5.469 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001228/0.2375, allocations: 0.9278 MB / 1.169 GB, free: 4.535 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.885e-05/0.2376, allocations: 4 kB / 1.169 GB, free: 4.531 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.000421/0.238, allocations: 174.6 kB / 1.169 GB, free: 4.363 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0003231/0.2384, allocations: 165.5 kB / 1.169 GB, free: 4.203 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003776/0.2387, allocations: 208.7 kB / 1.169 GB, free: 4 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.0002554/0.239, allocations: 239.5 kB / 1.17 GB, free: 3.766 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001231/0.2391, allocations: 53.94 kB / 1.17 GB, free: 3.711 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001328/0.2393, allocations: 111.6 kB / 1.17 GB, free: 3.602 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.2395, allocations: 143.6 kB / 1.17 GB, free: 3.461 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 3.656e-05/0.2395, allocations: 20 kB / 1.17 GB, free: 3.441 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 8.597e-05/0.2396, allocations: 55.84 kB / 1.17 GB, free: 3.387 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 9.362e-05/0.2397, allocations: 79.81 kB / 1.17 GB, free: 3.309 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 9.706e-05/0.2398, allocations: 115.2 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003474/0.2402, allocations: 358.5 kB / 1.17 GB, free: 2.844 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.2402, allocations: 4 kB / 1.17 GB, free: 2.84 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2402, allocations: 0 / 1.17 GB, free: 2.84 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.2402, allocations: 0 / 1.17 GB, free: 2.84 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007209/0.2409, allocations: 0.6145 MB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 2.87e-05/0.241, allocations: 8.031 kB / 1.171 GB, free: 2.168 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.165e-05/0.241, allocations: 42.73 kB / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.2411, allocations: 32.7 kB / 1.171 GB, free: 2.086 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004661/0.2415, allocations: 414.6 kB / 1.172 GB, free: 1.645 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.2416, allocations: 12.38 kB / 1.172 GB, free: 1.633 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.2416, allocations: 7.938 kB / 1.172 GB, free: 1.625 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001424/0.2417, allocations: 73.61 kB / 1.172 GB, free: 1.547 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.2417, allocations: 7.969 kB / 1.172 GB, free: 1.539 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.264e-06/0.2417, allocations: 0 / 1.172 GB, free: 1.539 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.065e-06/0.2418, allocations: 4 kB / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001168/0.2419, allocations: 47.97 kB / 1.172 GB, free: 1.488 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005119/0.2424, allocations: 480.5 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001096/0.2425, allocations: 50.55 kB / 1.172 GB, free: 0.9102 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.626e-05/0.2426, allocations: 16.92 kB / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.2426, allocations: 0 / 1.172 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.89e-05/0.2426, allocations: 38.55 kB / 1.172 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of pre-optimization done (n=3): time 8.11e-07/0.2426, allocations: 3.938 kB / 1.172 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of matching and sorting (n=3): time 0.0002564/0.2429, allocations: 113.4 kB / 1.172 GB, free: 0.7227 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.2429, allocations: 51.52 kB / 1.172 GB, free: 0.6602 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005722/0.2435, allocations: 0.5523 MB / 1.173 GB, free: 100 kB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.325e-05/0.2435, allocations: 25.7 kB / 1.173 GB, free: 68 kB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.2437, allocations: 176 kB / 1.173 GB, free: 15.89 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.543e-05/0.2437, allocations: 7.938 kB / 1.173 GB, free: 15.88 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.041e-05/0.2437, allocations: 17.72 kB / 1.173 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.2439, allocations: 350.8 kB / 1.174 GB, free: 15.51 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.563e-05/0.2439, allocations: 15.98 kB / 1.174 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.596e-05/0.244, allocations: 7.984 kB / 1.174 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.27e-05/0.2441, allocations: 44.72 kB / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.492e-06/0.2441, allocations: 0 / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001528/0.2442, allocations: 89.44 kB / 1.174 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.2442, allocations: 8 kB / 1.174 GB, free: 15.34 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.705e-06/0.2443, allocations: 4 kB / 1.174 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.2443, allocations: 3.938 kB / 1.174 GB, free: 15.33 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.91e-05/0.2443, allocations: 7.984 kB / 1.174 GB, free: 15.32 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.2443, allocations: 7.984 kB / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.328e-05/0.2444, allocations: 0 / 1.174 GB, free: 15.31 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-06/0.2444, allocations: 0 / 1.174 GB, free: 15.31 MB / 0.9356 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.0001432/0.2446, allocations: 181.8 kB / 1.174 GB, free: 15.12 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.574e-05/0.2446, allocations: 27.81 kB / 1.174 GB, free: 15.1 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001898/0.2448, allocations: 112.4 kB / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-06/0.2448, allocations: 0 / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.585e-06/0.2448, allocations: 48 / 1.174 GB, free: 14.98 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.2448, allocations: 7.984 kB / 1.174 GB, free: 14.97 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002642/0.2451, allocations: 277.5 kB / 1.174 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.2451, allocations: 0 / 1.174 GB, free: 14.65 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-05/0.2452, allocations: 11.98 kB / 1.174 GB, free: 14.64 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.2452, allocations: 4 kB / 1.174 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.475e-06/0.2452, allocations: 3.938 kB / 1.174 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.2452, allocations: 0 / 1.174 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2452, allocations: 0 / 1.174 GB, free: 14.63 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000196/0.2454, allocations: 191.2 kB / 1.174 GB, free: 14.43 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 8.619e-05/0.2455, allocations: 120.9 kB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.634e-05/0.2455, allocations: 3.938 kB / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.978e-05/0.2456, allocations: 0 / 1.175 GB, free: 14.29 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.457e-05/0.2456, allocations: 7.984 kB / 1.175 GB, free: 14.28 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.377e-06/0.2456, allocations: 3.938 kB / 1.175 GB, free: 14.27 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0004132/0.2461, allocations: 423.1 kB / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2461, allocations: 0 / 1.175 GB, free: 13.87 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0002255/0.2463, allocations: 23.94 kB / 1.175 GB, free: 13.84 MB / 0.9356 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.001426/0.2477, allocations: 0.9672 MB / 1.176 GB, free: 12.98 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0001275/0.2479, allocations: 39.91 kB / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-06/0.2479, allocations: 0 / 1.176 GB, free: 12.94 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 5.064e-05/0.2479, allocations: 15.98 kB / 1.176 GB, free: 12.93 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003288/0.2483, allocations: 50.98 kB / 1.176 GB, free: 12.88 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002929/0.2512, allocations: 2.908 MB / 1.179 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003686/0.2516, allocations: 0.7792 MB / 1.18 GB, free: 9.086 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 9.152e-05/0.2517, allocations: 50.91 kB / 1.18 GB, free: 9.035 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001227/0.2518, allocations: 87.41 kB / 1.18 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of SimCode: time 1.783e-06/0.2518, allocations: 0 / 1.18 GB, free: 8.949 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.575/1.827, allocations: 5.462 MB / 1.185 GB, free: 3.664 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.25/28.08, allocations: 9.578 kB / 1.185 GB, free: 3.656 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=400 --tolerance=1e-06 Buildings_10_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_10_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)