Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_9_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.001301/0.001301, 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.001371/0.001371, allocations: 198.1 kB / 16.14 MB, free: 6.719 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.263/1.263, allocations: 222.9 MB / 239.8 MB, free: 4.629 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.195/2.195, allocations: 390.2 MB / 0.6643 GB, free: 0.5938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001222/0.001222, allocations: 59.89 kB / 0.812 GB, free: 14.78 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4968/0.498, allocations: 140.4 MB / 0.949 GB, free: 9.188 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002224/0.5003, allocations: 1.827 MB / 0.9508 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009245/0.5012, allocations: 0.9127 MB / 0.9517 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.43e-05/0.5013, allocations: 1.406 kB / 0.9517 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003732/0.5017, allocations: 170.5 kB / 0.9519 GB, free: 6.957 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.5019, allocations: 137.5 kB / 0.952 GB, free: 6.875 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.5022, allocations: 208.3 kB / 0.9522 GB, free: 6.738 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.5024, allocations: 214.4 kB / 0.9524 GB, free: 6.621 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001029/0.5025, allocations: 57.55 kB / 0.9525 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 9.788e-05/0.5026, allocations: 84.14 kB / 0.9526 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001331/0.5028, allocations: 140 kB / 0.9527 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.029e-05/0.5028, allocations: 6.906 kB / 0.9527 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.02e-05/0.5029, allocations: 39.02 kB / 0.9527 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.097e-05/0.503, allocations: 72 kB / 0.9528 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.927e-05/0.503, allocations: 104.9 kB / 0.9529 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002304/0.5033, allocations: 343.5 kB / 0.9532 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.5033, allocations: 1.125 kB / 0.9532 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of FrontEnd: time 6.81e-07/0.5033, allocations: 0 / 0.9532 GB, free: 6.09 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.5033, allocations: 4 kB / 0.9532 GB, free: 6.086 MB / 0.7169 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.0005474/0.5039, allocations: 0.6033 MB / 0.9538 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.877e-05/0.5039, allocations: 9.438 kB / 0.9538 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.257e-05/0.5039, allocations: 40.33 kB / 0.9539 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.769e-05/0.504, allocations: 34.59 kB / 0.9539 GB, free: 5.457 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003703/0.5043, allocations: 415.5 kB / 0.9543 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.082e-06/0.5044, allocations: 5.656 kB / 0.9543 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.346e-05/0.5044, allocations: 11.48 kB / 0.9543 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001294/0.5045, allocations: 76.55 kB / 0.9544 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.332e-06/0.5045, allocations: 3.938 kB / 0.9544 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.586e-06/0.5045, allocations: 1.344 kB / 0.9544 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.5045, allocations: 1.094 kB / 0.9544 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001093/0.5047, allocations: 49.16 kB / 0.9544 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003994/0.5051, allocations: 482.7 kB / 0.9549 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.5052, allocations: 48.73 kB / 0.955 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.519e-05/0.5052, allocations: 16.12 kB / 0.955 GB, free: 4.535 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.81e-05/0.5053, allocations: 5.438 kB / 0.955 GB, free: 4.531 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.467e-06/0.5053, allocations: 32.06 kB / 0.955 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.5053, allocations: 0 / 0.955 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0002302/0.5055, allocations: 115.1 kB / 0.9551 GB, free: 4.41 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.4e-05/0.5055, allocations: 51.41 kB / 0.9552 GB, free: 4.348 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004574/0.506, allocations: 0.5498 MB / 0.9557 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.763e-06/0.506, allocations: 27.48 kB / 0.9557 GB, free: 4.02 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.277e-05/0.5061, allocations: 173.6 kB / 0.9559 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.341e-05/0.5061, allocations: 9.234 kB / 0.9559 GB, free: 3.855 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.556e-05/0.5061, allocations: 16.41 kB / 0.9559 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.837e-05/0.5062, allocations: 344.9 kB / 0.9562 GB, free: 3.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.446e-05/0.5062, allocations: 15.42 kB / 0.9563 GB, free: 3.492 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.739e-05/0.5063, allocations: 11.67 kB / 0.9563 GB, free: 3.488 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.762e-05/0.5064, allocations: 36.47 kB / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.5064, allocations: 0.7812 kB / 0.9563 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001401/0.5065, allocations: 92.61 kB / 0.9564 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.006e-05/0.5065, allocations: 4.938 kB / 0.9564 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.567e-06/0.5065, allocations: 1.562 kB / 0.9564 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.157e-06/0.5065, allocations: 8.266 kB / 0.9564 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.134e-05/0.5066, allocations: 5.469 kB / 0.9564 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.386e-06/0.5066, allocations: 0 / 0.9564 GB, free: 3.391 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.888e-05/0.5067, allocations: 6.172 kB / 0.9564 GB, free: 3.387 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.711e-06/0.5067, allocations: 1.812 kB / 0.9564 GB, free: 3.387 MB / 0.7169 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.0001002/0.5068, allocations: 184.1 kB / 0.9566 GB, free: 3.234 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.003e-05/0.5069, allocations: 28.91 kB / 0.9566 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001731/0.507, allocations: 119.4 kB / 0.9567 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.507, allocations: 0 / 0.9567 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/0.507, allocations: 1.531 kB / 0.9567 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.5071, allocations: 0 / 0.9567 GB, free: 3.121 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001938/0.5072, allocations: 283.3 kB / 0.957 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.5073, allocations: 0 / 0.957 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.702e-05/0.5073, allocations: 13.67 kB / 0.957 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.523e-06/0.5073, allocations: 0 / 0.957 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.592e-06/0.5073, allocations: 5.469 kB / 0.957 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.5073, allocations: 0 / 0.957 GB, free: 2.836 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.5073, allocations: 5.375 kB / 0.957 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001476/0.5075, allocations: 191.8 kB / 0.9572 GB, free: 2.66 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.5076, allocations: 117.9 kB / 0.9573 GB, free: 2.539 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.873e-05/0.5076, allocations: 6.062 kB / 0.9573 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.393e-05/0.5077, allocations: 0 / 0.9573 GB, free: 2.535 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.482e-05/0.5077, allocations: 5.922 kB / 0.9573 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.097e-06/0.5077, allocations: 1.906 kB / 0.9573 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003436/0.5081, allocations: 416.2 kB / 0.9577 GB, free: 2.312 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5081, allocations: 4.812 kB / 0.9577 GB, free: 2.309 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002386/0.5083, allocations: 25.03 kB / 0.9578 GB, free: 2.305 MB / 0.7169 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.0008508/0.5092, allocations: 0.9653 MB / 0.9587 GB, free: 1.527 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001151/0.5093, allocations: 41.72 kB / 0.9587 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.222e-06/0.5093, allocations: 1.375 kB / 0.9588 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.367e-05/0.5093, allocations: 9.625 kB / 0.9588 GB, free: 1.504 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003372/0.5097, allocations: 53.48 kB / 0.9588 GB, free: 1.469 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002801/0.5125, allocations: 2.936 MB / 0.9617 GB, free: 15.42 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002951/0.5128, allocations: 0.7834 MB / 0.9624 GB, free: 14.67 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 9.395e-05/0.5129, allocations: 44.11 kB / 0.9625 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001201/0.513, allocations: 92.61 kB / 0.9626 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of SimCode: time 2.8e-07/0.513, allocations: 4 kB / 0.9626 GB, free: 14.57 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5595/1.073, allocations: 5.147 MB / 0.9676 GB, free: 12.15 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002633/1.073, allocations: 281.2 kB / 0.9679 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/2.77, allocations: 3.938 kB / 0.9679 GB, free: 11.77 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat --tempDir=temp_Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)