Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.736/1.736, allocations: 288.2 MB / 303.2 MB, free: 8.07 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.001268/0.001268, allocations: 187.5 kB / 371.8 MB, free: 10.27 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.554/1.554, allocations: 205.4 MB / 0.6305 GB, free: 10 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.0008947/0.0008947, allocations: 92.28 kB / 0.7439 GB, free: 5.941 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003712/0.0003712, allocations: 10.81 kB / 0.8669 GB, free: 142.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2208, allocations: 115.3 MB / 0.9795 GB, free: 27.6 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002427/0.2233, allocations: 1.446 MB / 0.9809 GB, free: 26.14 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001062/0.2244, allocations: 0.7889 MB / 0.9817 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.704e-05/0.2245, allocations: 7.875 kB / 0.9817 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0004257/0.2249, allocations: 146.6 kB / 0.9818 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0002785/0.2252, allocations: 142.9 kB / 0.9819 GB, free: 25.06 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000334/0.2255, allocations: 155.7 kB / 0.9821 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0001668/0.2257, allocations: 139.8 kB / 0.9822 GB, free: 24.77 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001242/0.2258, allocations: 46.11 kB / 0.9823 GB, free: 24.73 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001147/0.226, allocations: 83.61 kB / 0.9824 GB, free: 24.64 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.2261, allocations: 131.6 kB / 0.9825 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 2.297e-05/0.2261, allocations: 4 kB / 0.9825 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.813e-05/0.2262, allocations: 20 kB / 0.9825 GB, free: 24.49 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 6.275e-05/0.2263, allocations: 71.73 kB / 0.9826 GB, free: 24.42 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 4.019e-05/0.2263, allocations: 61.58 kB / 0.9826 GB, free: 24.36 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0002051/0.2265, allocations: 287.3 kB / 0.9829 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.2266, allocations: 4 kB / 0.9829 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.392e-06/0.2266, allocations: 0 / 0.9829 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.2266, allocations: 3.938 kB / 0.9829 GB, free: 24.07 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.0006299/0.2272, allocations: 0.568 MB / 0.9835 GB, free: 23.45 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.2273, allocations: 8.031 kB / 0.9835 GB, free: 23.44 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.889e-05/0.2273, allocations: 38.55 kB / 0.9835 GB, free: 23.39 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.424e-05/0.2273, allocations: 31.58 kB / 0.9835 GB, free: 23.36 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004156/0.2278, allocations: 405.3 kB / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.858e-06/0.2278, allocations: 4 kB / 0.9839 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.2278, allocations: 4 kB / 0.9839 GB, free: 22.92 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001474/0.2279, allocations: 81.59 kB / 0.984 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.228, allocations: 0 / 0.984 GB, free: 22.84 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.709e-06/0.228, allocations: 4 kB / 0.984 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.039e-06/0.228, allocations: 4 kB / 0.984 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001122/0.2281, allocations: 47.97 kB / 0.9841 GB, free: 22.78 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004533/0.2286, allocations: 476.5 kB / 0.9845 GB, free: 22.27 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001121/0.2287, allocations: 58.44 kB / 0.9846 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.2287, allocations: 0 / 0.9846 GB, free: 22.2 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/0.2287, allocations: 42.62 kB / 0.9846 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 9.11e-07/0.2288, allocations: 0 / 0.9846 GB, free: 22.15 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0002664/0.229, allocations: 97.58 kB / 0.9847 GB, free: 22.05 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.108e-05/0.2291, allocations: 55.41 kB / 0.9848 GB, free: 21.98 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004589/0.2295, allocations: 0.5562 MB / 0.9853 GB, free: 21.41 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 7.604e-06/0.2295, allocations: 25.7 kB / 0.9853 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 8.168e-05/0.2296, allocations: 172 kB / 0.9855 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.2296, allocations: 19.73 kB / 0.9855 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-06/0.2297, allocations: 0 / 0.9855 GB, free: 21.19 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 6.586e-05/0.2297, allocations: 342.8 kB / 0.9858 GB, free: 20.85 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.779e-05/0.2298, allocations: 19.92 kB / 0.9859 GB, free: 20.83 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.506e-05/0.2298, allocations: 11.98 kB / 0.9859 GB, free: 20.82 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.82e-05/0.2299, allocations: 23.98 kB / 0.9859 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.442e-06/0.2299, allocations: 0 / 0.9859 GB, free: 20.79 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001404/0.23, allocations: 97.25 kB / 0.986 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.2301, allocations: 4 kB / 0.986 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2301, allocations: 0 / 0.986 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.415e-05/0.2301, allocations: 112 / 0.986 GB, free: 20.69 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.115e-05/0.2302, allocations: 15.92 kB / 0.986 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2302, allocations: 3.984 kB / 0.986 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.335e-05/0.2303, allocations: 8 kB / 0.986 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.841e-06/0.2303, allocations: 0 / 0.986 GB, free: 20.66 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 0.0001111/0.2304, allocations: 181.8 kB / 0.9862 GB, free: 20.47 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.267e-05/0.2304, allocations: 31.58 kB / 0.9862 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.2306, allocations: 108.1 kB / 0.9863 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.2306, allocations: 0 / 0.9863 GB, free: 20.32 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.2306, allocations: 7.938 kB / 0.9863 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.2307, allocations: 0 / 0.9863 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001975/0.2309, allocations: 281.5 kB / 0.9866 GB, free: 19.99 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.2309, allocations: 0 / 0.9866 GB, free: 19.99 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.634e-05/0.2309, allocations: 11.98 kB / 0.9866 GB, free: 19.98 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2309, allocations: 4 kB / 0.9866 GB, free: 19.97 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.564e-06/0.2309, allocations: 7.953 kB / 0.9866 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.2309, allocations: 0 / 0.9866 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.2309, allocations: 0 / 0.9866 GB, free: 19.96 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000177/0.2311, allocations: 191.1 kB / 0.9868 GB, free: 19.76 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 8.548e-05/0.2312, allocations: 124.7 kB / 0.9869 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.816e-05/0.2313, allocations: 0 / 0.9869 GB, free: 19.62 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.747e-05/0.2314, allocations: 7.953 kB / 0.9869 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.968e-05/0.2314, allocations: 4 kB / 0.9869 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.2314, allocations: 0 / 0.9869 GB, free: 19.61 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0003181/0.2317, allocations: 423.1 kB / 0.9873 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2317, allocations: 0 / 0.9873 GB, free: 19.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0002564/0.232, allocations: 20 kB / 0.9874 GB, free: 19.18 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.0008857/0.2329, allocations: 0.986 MB / 0.9883 GB, free: 18.31 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0001341/0.233, allocations: 31.97 kB / 0.9883 GB, free: 18.28 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.233, allocations: 0 / 0.9883 GB, free: 18.28 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 4.751e-05/0.2331, allocations: 23.98 kB / 0.9884 GB, free: 18.25 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002924/0.2334, allocations: 41.48 kB / 0.9884 GB, free: 18.21 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002247/0.2356, allocations: 1.875 MB / 0.9902 GB, free: 16.29 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001875/0.2359, allocations: 0.7911 MB / 0.991 GB, free: 15.47 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 9.426e-05/0.236, allocations: 42.94 kB / 0.9911 GB, free: 15.43 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001054/0.2361, allocations: 95.39 kB / 0.9911 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of SimCode: time 3.51e-07/0.2361, allocations: 4 kB / 0.9911 GB, free: 15.34 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01529/0.2514, allocations: 5.398 MB / 0.9964 GB, free: 10.11 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001663/0.2516, allocations: 261.6 kB / 0.9967 GB, free: 9.746 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.15/2.402, allocations: 6.094 kB / 0.9967 GB, free: 9.746 MB / 0.6198 GB (rm -f Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo.fmu > Buildings_maint.8.0.x_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.pipe 2>&1)