Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_8_0_0_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/Buildings 8.0.0/package.mo): time 1.45/1.45, allocations: 287.4 MB / 302.6 MB, free: 8.27 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008511/0.0008511, allocations: 183.1 kB / 371.1 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.176/1.176, allocations: 205.4 MB / 0.6298 GB, free: 10.59 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000667/0.000667, allocations: 91.47 kB / 0.7431 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003089/0.000309, allocations: 14.88 kB / 0.8662 GB, free: 140.8 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.1404, allocations: 115.3 MB / 0.9787 GB, free: 28.1 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.001391/0.1418, allocations: 1.444 MB / 0.9802 GB, free: 26.64 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0008784/0.1427, allocations: 0.8173 MB / 0.9809 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.956e-05/0.1428, allocations: 0 / 0.9809 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0003691/0.1432, allocations: 163.1 kB / 0.9811 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002362/0.1434, allocations: 132.1 kB / 0.9812 GB, free: 25.53 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.1437, allocations: 159.5 kB / 0.9814 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001803/0.1439, allocations: 207.4 kB / 0.9816 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001063/0.144, allocations: 53.88 kB / 0.9816 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001024/0.1441, allocations: 79.67 kB / 0.9817 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001341/0.1443, allocations: 135.5 kB / 0.9818 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.736e-05/0.1443, allocations: 4 kB / 0.9818 GB, free: 24.9 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.82e-05/0.1444, allocations: 35.98 kB / 0.9819 GB, free: 24.87 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.16e-05/0.1444, allocations: 63.75 kB / 0.9819 GB, free: 24.8 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 3.068e-05/0.1445, allocations: 61.58 kB / 0.982 GB, free: 24.74 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0001824/0.1447, allocations: 283.4 kB / 0.9823 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.1447, allocations: 0 / 0.9823 GB, free: 24.46 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.182e-06/0.1447, allocations: 7.938 kB / 0.9823 GB, free: 24.45 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.1447, allocations: 0 / 0.9823 GB, free: 24.45 MB / 0.6198 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.0005101/0.1452, allocations: 0.5604 MB / 0.9828 GB, free: 23.84 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.125e-05/0.1452, allocations: 12.03 kB / 0.9828 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.614e-05/0.1453, allocations: 34.69 kB / 0.9829 GB, free: 23.79 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.122e-05/0.1453, allocations: 32.56 kB / 0.9829 GB, free: 23.76 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003634/0.1457, allocations: 414.3 kB / 0.9833 GB, free: 23.32 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.899e-06/0.1457, allocations: 12.31 kB / 0.9833 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.056e-05/0.1457, allocations: 3.938 kB / 0.9833 GB, free: 23.3 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.1459, allocations: 77.66 kB / 0.9834 GB, free: 23.22 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.1459, allocations: 4 kB / 0.9834 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.1459, allocations: 4 kB / 0.9834 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.1459, allocations: 4 kB / 0.9834 GB, free: 23.21 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001049/0.146, allocations: 47.97 kB / 0.9834 GB, free: 23.16 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003955/0.1464, allocations: 492.3 kB / 0.9839 GB, free: 22.63 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 9.507e-05/0.1465, allocations: 50.62 kB / 0.984 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.293e-05/0.1466, allocations: 20.84 kB / 0.984 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 1.999e-05/0.1466, allocations: 0 / 0.984 GB, free: 22.55 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.379e-05/0.1466, allocations: 42.5 kB / 0.984 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 7.82e-07/0.1466, allocations: 0 / 0.984 GB, free: 22.5 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.000226/0.1468, allocations: 105.2 kB / 0.9841 GB, free: 22.39 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.867e-05/0.1469, allocations: 59.39 kB / 0.9842 GB, free: 22.32 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004303/0.1473, allocations: 0.5484 MB / 0.9847 GB, free: 21.76 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 6.161e-06/0.1473, allocations: 25.7 kB / 0.9847 GB, free: 21.73 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 7.363e-05/0.1474, allocations: 172 kB / 0.9849 GB, free: 21.56 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.365e-05/0.1474, allocations: 11.84 kB / 0.9849 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-06/0.1474, allocations: 0 / 0.9849 GB, free: 21.55 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 4.89e-05/0.1475, allocations: 346.8 kB / 0.9852 GB, free: 21.2 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.272e-05/0.1475, allocations: 15.98 kB / 0.9853 GB, free: 21.18 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.272e-05/0.1476, allocations: 15.92 kB / 0.9853 GB, free: 21.17 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.379e-05/0.1476, allocations: 41.11 kB / 0.9853 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.1477, allocations: 0 / 0.9853 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001223/0.1478, allocations: 97.3 kB / 0.9854 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.073e-05/0.1478, allocations: 8 kB / 0.9854 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.456e-06/0.1478, allocations: 0 / 0.9854 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1478, allocations: 3.938 kB / 0.9854 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.997e-05/0.1479, allocations: 4 kB / 0.9854 GB, free: 21.01 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.1479, allocations: 4 kB / 0.9854 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.713e-05/0.148, allocations: 7.891 kB / 0.9854 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.148, allocations: 4 kB / 0.9854 GB, free: 20.99 MB / 0.6198 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 9.29e-05/0.1481, allocations: 185.8 kB / 0.9856 GB, free: 20.8 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.654e-05/0.1481, allocations: 23.72 kB / 0.9856 GB, free: 20.78 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000164/0.1483, allocations: 112 kB / 0.9857 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.1483, allocations: 0 / 0.9857 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1483, allocations: 4 kB / 0.9857 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.804e-06/0.1483, allocations: 0 / 0.9857 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001705/0.1485, allocations: 285.5 kB / 0.986 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.1485, allocations: 0 / 0.986 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.379e-05/0.1485, allocations: 16.09 kB / 0.986 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1486, allocations: 3.938 kB / 0.986 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.472e-06/0.1486, allocations: 3.938 kB / 0.986 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1486, allocations: 0 / 0.986 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.1486, allocations: 3.984 kB / 0.986 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.1487, allocations: 191.1 kB / 0.9862 GB, free: 20.09 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 6.053e-05/0.1488, allocations: 124.7 kB / 0.9863 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.509e-05/0.1488, allocations: 3.938 kB / 0.9863 GB, free: 19.95 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.983e-05/0.1489, allocations: 7.984 kB / 0.9864 GB, free: 19.94 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.147e-05/0.1489, allocations: 4 kB / 0.9864 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.1489, allocations: 4 kB / 0.9864 GB, free: 19.93 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0002947/0.1492, allocations: 415.1 kB / 0.9868 GB, free: 19.53 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1492, allocations: 4 kB / 0.9868 GB, free: 19.52 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002108/0.1495, allocations: 31.94 kB / 0.9868 GB, free: 19.49 MB / 0.6198 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.0007673/0.1502, allocations: 0.964 MB / 0.9877 GB, free: 18.64 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001158/0.1504, allocations: 35.91 kB / 0.9878 GB, free: 18.6 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.1504, allocations: 0 / 0.9878 GB, free: 18.6 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.421e-05/0.1504, allocations: 20 kB / 0.9878 GB, free: 18.58 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003136/0.1507, allocations: 42.84 kB / 0.9878 GB, free: 18.54 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002097/0.1528, allocations: 1.937 MB / 0.9897 GB, free: 16.55 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001616/0.153, allocations: 0.7834 MB / 0.9905 GB, free: 15.75 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.268e-05/0.1531, allocations: 46.91 kB / 0.9905 GB, free: 15.7 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.265e-05/0.1532, allocations: 87.41 kB / 0.9906 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of SimCode: time 3.11e-07/0.1532, allocations: 0 / 0.9906 GB, free: 15.62 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2866/0.4399, allocations: 5.41 MB / 0.9959 GB, free: 10.43 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002298/0.4401, allocations: 259.2 kB / 0.9961 GB, free: 10.07 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.375/2.815, allocations: 2.406 kB / 0.9961 GB, free: 10.07 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_8.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)