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/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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_latest_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.001268/0.001268, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001249/0.001249, allocations: 192.3 kB / 16.14 MB, free: 6.711 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 / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.565/2.565, allocations: 461.9 MB / 0.7342 GB, free: 14.29 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 61.97 kB / 0.8985 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/0.2463, allocations: 157.4 MB / 1.052 GB, free: 8.266 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002854/0.2492, allocations: 1.833 MB / 1.054 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.00128/0.2505, allocations: 0.9083 MB / 1.055 GB, free: 5.504 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.92e-05/0.2505, allocations: 4 kB / 1.055 GB, free: 5.5 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004473/0.251, allocations: 172.5 kB / 1.055 GB, free: 5.332 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002954/0.2513, allocations: 147 kB / 1.055 GB, free: 5.191 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003817/0.2517, allocations: 187 kB / 1.055 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0002416/0.2519, allocations: 219.4 kB / 1.056 GB, free: 4.797 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001247/0.2521, allocations: 53.92 kB / 1.056 GB, free: 4.746 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.2522, allocations: 87.67 kB / 1.056 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001728/0.2524, allocations: 135.5 kB / 1.056 GB, free: 4.527 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.443e-05/0.2524, allocations: 8 kB / 1.056 GB, free: 4.52 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 8.793e-05/0.2525, allocations: 47.84 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 9.629e-05/0.2526, allocations: 75.75 kB / 1.056 GB, free: 4.398 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 8.767e-05/0.2527, allocations: 103.2 kB / 1.056 GB, free: 4.297 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003012/0.253, allocations: 342.8 kB / 1.056 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.253, allocations: 0 / 1.056 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of FrontEnd: time 8.71e-07/0.2531, allocations: 0 / 1.056 GB, free: 3.961 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.809e-06/0.2531, allocations: 0 / 1.056 GB, free: 3.961 MB / 0.8106 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.0007488/0.2538, allocations: 0.6069 MB / 1.057 GB, free: 3.305 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.474e-05/0.2539, allocations: 12.03 kB / 1.057 GB, free: 3.293 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.287e-05/0.2539, allocations: 34.75 kB / 1.057 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.482e-05/0.254, allocations: 32.56 kB / 1.057 GB, free: 3.219 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/0.2545, allocations: 414.3 kB / 1.057 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.333e-06/0.2545, allocations: 384 / 1.057 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.443e-05/0.2545, allocations: 11.94 kB / 1.057 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001518/0.2547, allocations: 69.67 kB / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.112e-06/0.2547, allocations: 0 / 1.058 GB, free: 2.688 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.2547, allocations: 4 kB / 1.058 GB, free: 2.684 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.2547, allocations: 3.938 kB / 1.058 GB, free: 2.68 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001251/0.2548, allocations: 55.89 kB / 1.058 GB, free: 2.625 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000539/0.2554, allocations: 492.5 kB / 1.058 GB, free: 2.094 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001272/0.2555, allocations: 46.56 kB / 1.058 GB, free: 2.039 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.458e-05/0.2556, allocations: 20.91 kB / 1.058 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.2556, allocations: 0 / 1.058 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.894e-05/0.2556, allocations: 34.56 kB / 1.058 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/0.2556, allocations: 0 / 1.058 GB, free: 1.973 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0002848/0.2559, allocations: 109.2 kB / 1.058 GB, free: 1.859 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.1e-05/0.256, allocations: 55.41 kB / 1.058 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006028/0.2566, allocations: 0.5523 MB / 1.059 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.282e-05/0.2566, allocations: 25.7 kB / 1.059 GB, free: 1.199 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001242/0.2567, allocations: 172 kB / 1.059 GB, free: 1.027 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.041e-05/0.2568, allocations: 15.75 kB / 1.059 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.2568, allocations: 17.7 kB / 1.059 GB, free: 0.9883 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001414/0.2569, allocations: 346.8 kB / 1.059 GB, free: 0.6406 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.201e-05/0.257, allocations: 7.984 kB / 1.059 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.95e-05/0.257, allocations: 15.98 kB / 1.059 GB, free: 0.6172 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.914e-05/0.2571, allocations: 32.84 kB / 1.059 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.2571, allocations: 0 / 1.059 GB, free: 0.582 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001604/0.2573, allocations: 97.23 kB / 1.06 GB, free: 492 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.562e-05/0.2573, allocations: 9.094 kB / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.2573, allocations: 0 / 1.06 GB, free: 484 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.396e-05/0.2574, allocations: 3.938 kB / 1.06 GB, free: 480 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.089e-05/0.2574, allocations: 4 kB / 1.06 GB, free: 476 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.2575, allocations: 3.938 kB / 1.06 GB, free: 472 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.302e-05/0.2575, allocations: 7.984 kB / 1.06 GB, free: 464 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.031e-06/0.2575, allocations: 0 / 1.06 GB, free: 464 kB / 0.8106 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.000149/0.2577, allocations: 181.8 kB / 1.06 GB, free: 272 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.565e-05/0.2578, allocations: 27.62 kB / 1.06 GB, free: 244 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002216/0.258, allocations: 108.5 kB / 1.06 GB, free: 124 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.258, allocations: 3.938 kB / 1.06 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.258, allocations: 0 / 1.06 GB, free: 120 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.258, allocations: 4.031 kB / 1.06 GB, free: 116 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000302/0.2583, allocations: 285.5 kB / 1.06 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2583, allocations: 0 / 1.06 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.128e-05/0.2584, allocations: 7.984 kB / 1.06 GB, free: 15.78 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.753e-06/0.2584, allocations: 4 kB / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.575e-05/0.2584, allocations: 7.938 kB / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.142e-06/0.2584, allocations: 0 / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.2584, allocations: 0 / 1.06 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002038/0.2586, allocations: 183.2 kB / 1.06 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.687e-05/0.2587, allocations: 116.7 kB / 1.06 GB, free: 15.44 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.189e-05/0.2588, allocations: 3.938 kB / 1.06 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.216e-05/0.2589, allocations: 7.938 kB / 1.06 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.081e-05/0.2589, allocations: 4 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.41e-06/0.2589, allocations: 3.984 kB / 1.061 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0004386/0.2594, allocations: 415.1 kB / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.2594, allocations: 0 / 1.061 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002616/0.2596, allocations: 28 kB / 1.061 GB, free: 14.99 MB / 0.8262 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.001169/0.2608, allocations: 0.9823 MB / 1.062 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001459/0.261, allocations: 39.84 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.261, allocations: 7.938 kB / 1.062 GB, free: 14.07 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.036e-05/0.261, allocations: 12 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003772/0.2614, allocations: 43.5 kB / 1.062 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00347/0.2649, allocations: 2.933 MB / 1.065 GB, free: 11 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003793/0.2653, allocations: 0.7911 MB / 1.066 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001127/0.2654, allocations: 50.91 kB / 1.066 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001281/0.2656, allocations: 87.39 kB / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of SimCode: time 4.01e-07/0.2656, allocations: 0 / 1.066 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0165/0.2821, allocations: 5.154 MB / 1.071 GB, free: 5.094 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002245/0.2823, allocations: 294.6 kB / 1.071 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.724/2.006, allocations: 3.938 kB / 1.071 GB, free: 4.703 MB / 0.8262 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)