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.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-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.0009975/0.0009977, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.00123/0.00123, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 223.3 MB / 240 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.4 MB / 0.6655 GB, free: 2.863 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003246/0.0003249, allocations: 12 kB / 0.8149 GB, free: 14.05 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5993/0.5996, allocations: 142.3 MB / 0.9539 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001608/0.6013, allocations: 1.443 MB / 0.9553 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.001026/0.6023, allocations: 0.8462 MB / 0.9561 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.291e-05/0.6024, allocations: 8.938 kB / 0.9561 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0004301/0.6028, allocations: 145.1 kB / 0.9562 GB, free: 6.199 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002771/0.6031, allocations: 158.6 kB / 0.9564 GB, free: 6.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003682/0.6035, allocations: 171.7 kB / 0.9566 GB, free: 5.996 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0002176/0.6037, allocations: 201.1 kB / 0.9568 GB, free: 5.875 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.6038, allocations: 44.52 kB / 0.9568 GB, free: 5.852 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.604, allocations: 79.17 kB / 0.9569 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001725/0.6042, allocations: 129 kB / 0.957 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.892e-05/0.6042, allocations: 9.25 kB / 0.957 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 8.168e-05/0.6043, allocations: 32.98 kB / 0.957 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.935e-05/0.6044, allocations: 67.31 kB / 0.9571 GB, free: 5.699 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.011e-05/0.6044, allocations: 65.14 kB / 0.9572 GB, free: 5.637 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002362/0.6047, allocations: 285.6 kB / 0.9574 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.409e-06/0.6047, allocations: 0 / 0.9574 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.543e-06/0.6047, allocations: 1.75 kB / 0.9574 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.316e-06/0.6047, allocations: 4 kB / 0.9574 GB, free: 5.441 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.0005862/0.6053, allocations: 0.566 MB / 0.958 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.593e-05/0.6053, allocations: 9.531 kB / 0.958 GB, free: 4.906 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.917e-05/0.6054, allocations: 37.22 kB / 0.958 GB, free: 4.863 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.104e-05/0.6054, allocations: 32.95 kB / 0.9581 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.6058, allocations: 389.6 kB / 0.9584 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.958e-06/0.6059, allocations: 6.188 kB / 0.9584 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.317e-05/0.6059, allocations: 4.344 kB / 0.9584 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000146/0.606, allocations: 81.31 kB / 0.9585 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.6061, allocations: 0 / 0.9585 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.6061, allocations: 1.406 kB / 0.9585 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.6061, allocations: 1.406 kB / 0.9585 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.6062, allocations: 63.08 kB / 0.9586 GB, free: 4.418 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004376/0.6067, allocations: 490.5 kB / 0.9591 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.6068, allocations: 47.16 kB / 0.9591 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.784e-05/0.6068, allocations: 21.94 kB / 0.9591 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.105e-05/0.6069, allocations: 1.531 kB / 0.9591 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.137e-05/0.6069, allocations: 36.09 kB / 0.9592 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.6069, allocations: 0 / 0.9592 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000254/0.6072, allocations: 107.7 kB / 0.9593 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.047e-05/0.6072, allocations: 52.38 kB / 0.9593 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005269/0.6077, allocations: 0.555 MB / 0.9599 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.876e-06/0.6077, allocations: 33.7 kB / 0.9599 GB, free: 3.41 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.022e-05/0.6078, allocations: 171.2 kB / 0.96 GB, free: 3.258 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.63e-05/0.6078, allocations: 13.2 kB / 0.9601 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.707e-06/0.6079, allocations: 0 / 0.9601 GB, free: 3.246 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.094e-05/0.6079, allocations: 344.4 kB / 0.9604 GB, free: 2.91 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.832e-05/0.608, allocations: 13.61 kB / 0.9604 GB, free: 2.906 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.748e-05/0.608, allocations: 12.09 kB / 0.9604 GB, free: 2.902 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.878e-05/0.6081, allocations: 23.67 kB / 0.9604 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.6081, allocations: 0 / 0.9604 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001552/0.6082, allocations: 99.78 kB / 0.9605 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.6083, allocations: 4.875 kB / 0.9605 GB, free: 2.82 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.6083, allocations: 4 kB / 0.9605 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.6083, allocations: 1.281 kB / 0.9605 GB, free: 2.816 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.755e-05/0.6084, allocations: 11.16 kB / 0.9606 GB, free: 2.812 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.6084, allocations: 4 kB / 0.9606 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.338e-05/0.6085, allocations: 7.203 kB / 0.9606 GB, free: 2.805 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.6085, allocations: 0.9688 kB / 0.9606 GB, free: 2.805 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001263/0.6086, allocations: 180.1 kB / 0.9607 GB, free: 2.656 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.122e-05/0.6087, allocations: 32.2 kB / 0.9608 GB, free: 2.637 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002034/0.6089, allocations: 99.66 kB / 0.9609 GB, free: 2.562 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.6089, allocations: 4.844 kB / 0.9609 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.6089, allocations: 112 / 0.9609 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.6089, allocations: 8.625 kB / 0.9609 GB, free: 2.551 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002269/0.6091, allocations: 283 kB / 0.9611 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.6091, allocations: 0 / 0.9611 GB, free: 2.277 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.023e-05/0.6092, allocations: 10.95 kB / 0.9612 GB, free: 2.273 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.6092, allocations: 5.047 kB / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.221e-06/0.6092, allocations: 0 / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.6092, allocations: 1.094 kB / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.6092, allocations: 0 / 0.9612 GB, free: 2.27 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001662/0.6094, allocations: 191.3 kB / 0.9613 GB, free: 2.102 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 7.47e-05/0.6095, allocations: 127.4 kB / 0.9615 GB, free: 1.973 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.478e-05/0.6095, allocations: 4.984 kB / 0.9615 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.964e-05/0.6096, allocations: 3.094 kB / 0.9615 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.633e-05/0.6097, allocations: 1 kB / 0.9615 GB, free: 1.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.6097, allocations: 5.094 kB / 0.9615 GB, free: 1.965 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0004044/0.6101, allocations: 418.4 kB / 0.9619 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of sort global known variables: time 7.31e-07/0.6101, allocations: 0 / 0.9619 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002791/0.6104, allocations: 33.84 kB / 0.9619 GB, free: 1.73 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009395/0.6113, allocations: 0.963 MB / 0.9628 GB, free: 0.9609 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0001343/0.6115, allocations: 46.17 kB / 0.9629 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.6115, allocations: 0 / 0.9629 GB, free: 0.9375 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 5.087e-05/0.6115, allocations: 24.14 kB / 0.9629 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/0.6119, allocations: 45.34 kB / 0.963 GB, free: 0.8984 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002631/0.6145, allocations: 1.939 MB / 0.9649 GB, free: 15.77 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003176/0.6149, allocations: 0.7873 MB / 0.9656 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0001109/0.615, allocations: 47.62 kB / 0.9657 GB, free: 15 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.6151, allocations: 92.42 kB / 0.9658 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of SimCode: time 2.3e-07/0.6151, allocations: 0 / 0.9658 GB, free: 14.92 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01524/0.6304, allocations: 5.409 MB / 0.971 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001882/0.6306, allocations: 266.9 kB / 0.9713 GB, free: 12.11 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.658/2.288, allocations: 4.938 kB / 0.9713 GB, free: 12.1 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo_res.mat does not exist to compare? outputFormat=mat