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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.001264/0.001264, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001231/0.001231, allocations: 192.5 kB / 16.25 MB, free: 6.633 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.224/1.224, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.158/2.158, allocations: 390.2 MB / 0.6644 GB, free: 0.5508 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001182/0.001182, allocations: 67.88 kB / 0.8122 GB, free: 14.64 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4858/0.487, allocations: 140.4 MB / 0.9492 GB, free: 9.262 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002319/0.4893, allocations: 1.815 MB / 0.951 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009433/0.4903, allocations: 0.9074 MB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.4903, allocations: 1.375 kB / 0.9519 GB, free: 7.145 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0003815/0.4907, allocations: 173.9 kB / 0.9521 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002803/0.491, allocations: 147.8 kB / 0.9522 GB, free: 6.949 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.4913, allocations: 192.5 kB / 0.9524 GB, free: 6.828 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002025/0.4915, allocations: 245.8 kB / 0.9526 GB, free: 6.684 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001158/0.4917, allocations: 57.36 kB / 0.9527 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001106/0.4918, allocations: 103.8 kB / 0.9528 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001444/0.4919, allocations: 155 kB / 0.9529 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 3.269e-05/0.492, allocations: 18.72 kB / 0.953 GB, free: 6.508 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.708e-05/0.4921, allocations: 43.56 kB / 0.953 GB, free: 6.5 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.049e-05/0.4921, allocations: 93.27 kB / 0.9531 GB, free: 6.441 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 6.538e-05/0.4922, allocations: 115.8 kB / 0.9532 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002312/0.4924, allocations: 347.8 kB / 0.9535 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.4925, allocations: 7.922 kB / 0.9535 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.173e-06/0.4925, allocations: 0 / 0.9535 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.051e-05/0.4925, allocations: 0 / 0.9535 GB, free: 6.094 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.0005506/0.493, allocations: 0.5951 MB / 0.9541 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 2.99e-05/0.4931, allocations: 10.16 kB / 0.9541 GB, free: 5.539 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.518e-05/0.4931, allocations: 36 kB / 0.9542 GB, free: 5.496 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.63e-05/0.4931, allocations: 34.88 kB / 0.9542 GB, free: 5.477 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003742/0.4935, allocations: 426.4 kB / 0.9546 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.686e-06/0.4935, allocations: 10.69 kB / 0.9546 GB, free: 5.109 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.4936, allocations: 7.375 kB / 0.9546 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.4937, allocations: 73.05 kB / 0.9547 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.4937, allocations: 0 / 0.9547 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.206e-06/0.4937, allocations: 0 / 0.9547 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.887e-06/0.4937, allocations: 2.406 kB / 0.9547 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001061/0.4938, allocations: 44.56 kB / 0.9547 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004061/0.4943, allocations: 485.9 kB / 0.9552 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 9.799e-05/0.4944, allocations: 50.84 kB / 0.9552 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.257e-05/0.4944, allocations: 20.78 kB / 0.9553 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.657e-05/0.4944, allocations: 4 kB / 0.9553 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.877e-06/0.4944, allocations: 30.56 kB / 0.9553 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.4945, allocations: 0 / 0.9553 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000221/0.4947, allocations: 107.2 kB / 0.9554 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.545e-05/0.4947, allocations: 54.56 kB / 0.9554 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00047/0.4952, allocations: 0.5479 MB / 0.956 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 7.134e-06/0.4952, allocations: 29.69 kB / 0.956 GB, free: 4.035 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 7.583e-05/0.4953, allocations: 178.3 kB / 0.9562 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.454e-05/0.4953, allocations: 5.156 kB / 0.9562 GB, free: 3.871 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.669e-05/0.4953, allocations: 21.66 kB / 0.9562 GB, free: 3.848 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.704e-05/0.4954, allocations: 344.4 kB / 0.9565 GB, free: 3.512 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.425e-05/0.4954, allocations: 15.8 kB / 0.9565 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.379e-05/0.4955, allocations: 6.625 kB / 0.9566 GB, free: 3.504 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.074e-05/0.4955, allocations: 37.67 kB / 0.9566 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.4956, allocations: 0 / 0.9566 GB, free: 3.48 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001339/0.4957, allocations: 92.8 kB / 0.9567 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.03e-05/0.4957, allocations: 6.156 kB / 0.9567 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.216e-06/0.4957, allocations: 0 / 0.9567 GB, free: 3.414 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.4957, allocations: 3.984 kB / 0.9567 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.25e-05/0.4958, allocations: 14.52 kB / 0.9567 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.808e-06/0.4958, allocations: 0 / 0.9567 GB, free: 3.402 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.877e-05/0.4959, allocations: 6.172 kB / 0.9567 GB, free: 3.398 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.67e-06/0.4959, allocations: 1.031 kB / 0.9567 GB, free: 3.398 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.0001008/0.496, allocations: 188.7 kB / 0.9569 GB, free: 3.242 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.692e-05/0.496, allocations: 32.41 kB / 0.9569 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001671/0.4962, allocations: 107.2 kB / 0.957 GB, free: 3.137 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.4962, allocations: 6.062 kB / 0.957 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.875e-06/0.4962, allocations: 0 / 0.957 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.4962, allocations: 0 / 0.957 GB, free: 3.133 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001876/0.4964, allocations: 283.4 kB / 0.9573 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.4964, allocations: 0 / 0.9573 GB, free: 2.859 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.514e-05/0.4965, allocations: 13.83 kB / 0.9573 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.4965, allocations: 4 kB / 0.9573 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.4965, allocations: 5.344 kB / 0.9573 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.001e-06/0.4965, allocations: 0 / 0.9573 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.4965, allocations: 0 / 0.9573 GB, free: 2.844 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001428/0.4967, allocations: 184.2 kB / 0.9575 GB, free: 2.68 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 6.367e-05/0.4967, allocations: 115.2 kB / 0.9576 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.4968, allocations: 3.938 kB / 0.9576 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.501e-05/0.4969, allocations: 10.19 kB / 0.9576 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.375e-05/0.4969, allocations: 1.312 kB / 0.9576 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.078e-06/0.4969, allocations: 1.281 kB / 0.9576 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0003377/0.4972, allocations: 422 kB / 0.958 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.4972, allocations: 0 / 0.958 GB, free: 2.328 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002384/0.4975, allocations: 24.53 kB / 0.958 GB, free: 2.324 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.0008669/0.4984, allocations: 0.9738 MB / 0.959 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001274/0.4985, allocations: 43.33 kB / 0.959 GB, free: 1.516 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4985, allocations: 4 kB / 0.959 GB, free: 1.512 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 4.568e-05/0.4985, allocations: 14 kB / 0.9591 GB, free: 1.508 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003523/0.4989, allocations: 49.72 kB / 0.9591 GB, free: 1.477 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.5018, allocations: 2.932 MB / 0.962 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003195/0.5021, allocations: 0.7825 MB / 0.9627 GB, free: 14.68 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001042/0.5022, allocations: 52.02 kB / 0.9628 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000119/0.5023, allocations: 96.45 kB / 0.9629 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of SimCode: time 1.593e-06/0.5023, allocations: 0 / 0.9629 GB, free: 14.58 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8072/1.31, allocations: 5.239 MB / 0.968 GB, free: 12.1 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000268/1.31, allocations: 286.9 kB / 0.9683 GB, free: 11.72 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.957/3.267, allocations: 3.219 kB / 0.9683 GB, free: 11.72 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)