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 2.583/2.583, allocations: 287.5 MB / 302.4 MB, free: 8.363 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.001453/0.001453, allocations: 173.6 kB / 371 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.4 MB / 0.6297 GB, free: 10.57 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.0009928/0.0009927, allocations: 94.34 kB / 0.743 GB, free: 6.594 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000659/0.0006593, allocations: 10.25 kB / 0.8659 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2252/0.2259, allocations: 115.3 MB / 0.9785 GB, free: 28.25 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002357/0.2283, allocations: 1.437 MB / 0.9799 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001692/0.23, allocations: 0.8047 MB / 0.9807 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001247/0.2302, allocations: 7.938 kB / 0.9807 GB, free: 25.98 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0005987/0.2308, allocations: 157.8 kB / 0.9808 GB, free: 25.82 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004147/0.2312, allocations: 139.9 kB / 0.981 GB, free: 25.69 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005911/0.2318, allocations: 159.8 kB / 0.9811 GB, free: 25.54 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0002892/0.2321, allocations: 203.4 kB / 0.9813 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.2323, allocations: 46.11 kB / 0.9813 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.2325, allocations: 75.67 kB / 0.9814 GB, free: 25.21 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002194/0.2327, allocations: 139.6 kB / 0.9815 GB, free: 25.08 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.773e-05/0.2328, allocations: 4 kB / 0.9815 GB, free: 25.07 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001315/0.2329, allocations: 24 kB / 0.9816 GB, free: 25.05 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 9.967e-05/0.233, allocations: 71.73 kB / 0.9816 GB, free: 24.98 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 5.2e-05/0.2331, allocations: 69.52 kB / 0.9817 GB, free: 24.91 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003363/0.2334, allocations: 283.3 kB / 0.982 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.2335, allocations: 3.938 kB / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.064e-06/0.2335, allocations: 0 / 0.982 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.071e-06/0.2335, allocations: 0 / 0.982 GB, free: 24.62 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.000876/0.2344, allocations: 0.5641 MB / 0.9825 GB, free: 24.01 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.2344, allocations: 8.031 kB / 0.9825 GB, free: 24 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.285e-05/0.2345, allocations: 42.55 kB / 0.9826 GB, free: 23.95 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.249e-05/0.2346, allocations: 31.58 kB / 0.9826 GB, free: 23.92 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00069/0.2353, allocations: 397.3 kB / 0.983 GB, free: 23.5 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.53e-05/0.2353, allocations: 4 kB / 0.983 GB, free: 23.49 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.135e-05/0.2354, allocations: 8 kB / 0.983 GB, free: 23.48 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002238/0.2356, allocations: 73.66 kB / 0.9831 GB, free: 23.41 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.2356, allocations: 4 kB / 0.9831 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.377e-05/0.2356, allocations: 4 kB / 0.9831 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.2357, allocations: 0 / 0.9831 GB, free: 23.4 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001912/0.2359, allocations: 55.86 kB / 0.9831 GB, free: 23.34 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006932/0.2366, allocations: 496.5 kB / 0.9836 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.2367, allocations: 50.5 kB / 0.9837 GB, free: 22.75 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.78e-05/0.2368, allocations: 16.92 kB / 0.9837 GB, free: 22.73 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.202e-05/0.2369, allocations: 7.984 kB / 0.9837 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.99e-05/0.2369, allocations: 30.56 kB / 0.9837 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.683e-06/0.2369, allocations: 4 kB / 0.9837 GB, free: 22.68 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0003801/0.2373, allocations: 101.3 kB / 0.9838 GB, free: 22.57 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.2374, allocations: 55.34 kB / 0.9839 GB, free: 22.51 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008214/0.2382, allocations: 0.5601 MB / 0.9844 GB, free: 21.94 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.2382, allocations: 25.7 kB / 0.9844 GB, free: 21.91 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001302/0.2384, allocations: 168 kB / 0.9846 GB, free: 21.74 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.346e-05/0.2384, allocations: 19.75 kB / 0.9846 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.2384, allocations: 0 / 0.9846 GB, free: 21.72 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.73e-05/0.2385, allocations: 342.8 kB / 0.9849 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2386, allocations: 15.98 kB / 0.985 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.669e-05/0.2387, allocations: 16 kB / 0.985 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.14e-05/0.2388, allocations: 11.98 kB / 0.985 GB, free: 21.34 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.2388, allocations: 4 kB / 0.985 GB, free: 21.33 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002491/0.2391, allocations: 97.25 kB / 0.9851 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.89e-05/0.2391, allocations: 6.188 kB / 0.9851 GB, free: 21.23 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.043e-06/0.2391, allocations: 4 kB / 0.9851 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.767e-05/0.2391, allocations: 0 / 0.9851 GB, free: 21.22 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.2393, allocations: 7.938 kB / 0.9851 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.2393, allocations: 0 / 0.9851 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.2394, allocations: 7.984 kB / 0.9851 GB, free: 21.21 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.13e-05/0.2394, allocations: 12 kB / 0.9851 GB, free: 21.2 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.0001788/0.2396, allocations: 173.8 kB / 0.9853 GB, free: 21.02 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.58e-05/0.2397, allocations: 35.52 kB / 0.9853 GB, free: 20.98 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002984/0.24, allocations: 104.2 kB / 0.9854 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.24, allocations: 0 / 0.9854 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.24, allocations: 0 / 0.9854 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.24, allocations: 8.109 kB / 0.9854 GB, free: 20.86 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000308/0.2404, allocations: 285.5 kB / 0.9857 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.2404, allocations: 0 / 0.9857 GB, free: 20.53 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.094e-05/0.2405, allocations: 16.36 kB / 0.9857 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/0.2405, allocations: 3.953 kB / 0.9857 GB, free: 20.51 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.2405, allocations: 3.938 kB / 0.9857 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.184e-06/0.2405, allocations: 0 / 0.9857 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2405, allocations: 0 / 0.9857 GB, free: 20.5 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002512/0.2408, allocations: 191.1 kB / 0.9859 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.2409, allocations: 120.7 kB / 0.986 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.418e-05/0.241, allocations: 7.953 kB / 0.986 GB, free: 20.16 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.2411, allocations: 7.984 kB / 0.986 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.032e-05/0.2412, allocations: 0 / 0.986 GB, free: 20.15 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.2412, allocations: 4 kB / 0.986 GB, free: 20.14 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0005834/0.2418, allocations: 415.1 kB / 0.9864 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4e-07/0.2418, allocations: 4 kB / 0.9864 GB, free: 19.74 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003385/0.2421, allocations: 28 kB / 0.9865 GB, free: 19.71 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.001355/0.2435, allocations: 0.9684 MB / 0.9874 GB, free: 18.85 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002332/0.2438, allocations: 31.97 kB / 0.9874 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.2438, allocations: 0 / 0.9874 GB, free: 18.82 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.583e-05/0.2439, allocations: 27.92 kB / 0.9875 GB, free: 18.79 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005806/0.2445, allocations: 45.62 kB / 0.9875 GB, free: 18.75 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004023/0.2485, allocations: 1.942 MB / 0.9894 GB, free: 16.76 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.2488, allocations: 0.7834 MB / 0.9902 GB, free: 15.95 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0001812/0.249, allocations: 46.92 kB / 0.9902 GB, free: 15.91 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001775/0.2492, allocations: 87.41 kB / 0.9903 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of SimCode: time 1.172e-06/0.2492, allocations: 0 / 0.9903 GB, free: 15.82 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03571/0.285, allocations: 5.42 MB / 0.9956 GB, free: 10.62 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002762/0.2853, allocations: 259.5 kB / 0.9958 GB, free: 10.26 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.721/3.006, allocations: 2.812 kB / 0.9958 GB, free: 10.26 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)