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.808/2.808, allocations: 287.3 MB / 302.3 MB, free: 8.391 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.001777/0.001777, allocations: 179.9 kB / 370.8 MB, free: 10.87 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.234/2.234, allocations: 205.4 MB / 0.6295 GB, free: 10.61 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.001238/0.001238, allocations: 97.61 kB / 0.7428 GB, free: 6.602 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005103/0.0005105, allocations: 12.75 kB / 0.8657 GB, free: 140.9 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2307, allocations: 115.3 MB / 0.9783 GB, free: 28.28 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002493/0.2332, allocations: 1.449 MB / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.001933/0.2352, allocations: 0.7773 MB / 0.9805 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.2355, allocations: 7.938 kB / 0.9805 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.0006405/0.2362, allocations: 159.2 kB / 0.9806 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.0004903/0.2367, allocations: 132.1 kB / 0.9808 GB, free: 25.74 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006228/0.2373, allocations: 155.8 kB / 0.9809 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 0.0003517/0.2377, allocations: 131.8 kB / 0.981 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.2379, allocations: 54.05 kB / 0.9811 GB, free: 25.41 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000184/0.2381, allocations: 83.61 kB / 0.9812 GB, free: 25.32 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002271/0.2383, allocations: 127.6 kB / 0.9813 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 4.072e-05/0.2384, allocations: 8 kB / 0.9813 GB, free: 25.19 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001336/0.2385, allocations: 20 kB / 0.9813 GB, free: 25.17 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 0.0001027/0.2386, allocations: 75.73 kB / 0.9814 GB, free: 25.1 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 6.345e-05/0.2387, allocations: 61.58 kB / 0.9814 GB, free: 25.03 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 0.0003754/0.2391, allocations: 287.3 kB / 0.9817 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 3.066e-06/0.2391, allocations: 0 / 0.9817 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.034e-06/0.2391, allocations: 0 / 0.9817 GB, free: 24.75 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 6.332e-06/0.2391, allocations: 0 / 0.9817 GB, free: 24.75 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.0009836/0.2401, allocations: 0.568 MB / 0.9823 GB, free: 24.13 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.2402, allocations: 8.031 kB / 0.9823 GB, free: 24.12 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.859e-05/0.2402, allocations: 42.55 kB / 0.9823 GB, free: 24.07 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.523e-05/0.2403, allocations: 31.58 kB / 0.9823 GB, free: 24.04 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007362/0.2411, allocations: 397.3 kB / 0.9827 GB, free: 23.62 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.632e-05/0.2411, allocations: 8 kB / 0.9827 GB, free: 23.61 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.318e-05/0.2412, allocations: 7.984 kB / 0.9827 GB, free: 23.6 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002413/0.2414, allocations: 85.55 kB / 0.9828 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.2414, allocations: 0 / 0.9828 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.412e-05/0.2415, allocations: 0 / 0.9828 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.2415, allocations: 0 / 0.9828 GB, free: 23.51 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001974/0.2417, allocations: 55.91 kB / 0.9829 GB, free: 23.46 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007886/0.2425, allocations: 484.5 kB / 0.9833 GB, free: 22.93 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.2427, allocations: 54.55 kB / 0.9834 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 3.484e-05/0.2427, allocations: 0 / 0.9834 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.266e-05/0.2428, allocations: 30.56 kB / 0.9834 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.633e-06/0.2428, allocations: 0 / 0.9834 GB, free: 22.83 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0004329/0.2432, allocations: 109.4 kB / 0.9835 GB, free: 22.72 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.2433, allocations: 51.41 kB / 0.9836 GB, free: 22.66 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008626/0.2441, allocations: 0.5562 MB / 0.9841 GB, free: 22.09 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.503e-05/0.2442, allocations: 25.7 kB / 0.9841 GB, free: 22.06 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 0.000139/0.2443, allocations: 168 kB / 0.9843 GB, free: 21.89 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.798e-05/0.2444, allocations: 19.73 kB / 0.9843 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.581e-06/0.2444, allocations: 0 / 0.9843 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 8.967e-05/0.2445, allocations: 346.8 kB / 0.9846 GB, free: 21.53 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001006/0.2446, allocations: 19.92 kB / 0.9847 GB, free: 21.51 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.997e-05/0.2447, allocations: 12 kB / 0.9847 GB, free: 21.5 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.844e-05/0.2448, allocations: 15.98 kB / 0.9847 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.2448, allocations: 4 kB / 0.9847 GB, free: 21.48 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003117/0.2451, allocations: 97.25 kB / 0.9848 GB, free: 21.38 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.2452, allocations: 11.94 kB / 0.9848 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.2452, allocations: 0 / 0.9848 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.2452, allocations: 0 / 0.9848 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001218/0.2453, allocations: 4.109 kB / 0.9848 GB, free: 21.36 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.2454, allocations: 7.938 kB / 0.9848 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001232/0.2455, allocations: 3.984 kB / 0.9848 GB, free: 21.35 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.143e-05/0.2455, allocations: 4 kB / 0.9848 GB, free: 21.34 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.0002234/0.2457, allocations: 179.7 kB / 0.985 GB, free: 21.16 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.049e-05/0.2458, allocations: 39.52 kB / 0.985 GB, free: 21.12 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003288/0.2462, allocations: 104.5 kB / 0.9851 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.2462, allocations: 4 kB / 0.9851 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.2462, allocations: 0 / 0.9851 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.2462, allocations: 0 / 0.9851 GB, free: 21 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003394/0.2466, allocations: 281.5 kB / 0.9854 GB, free: 20.68 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.2466, allocations: 4 kB / 0.9854 GB, free: 20.67 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.761e-05/0.2467, allocations: 15.98 kB / 0.9854 GB, free: 20.66 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.2467, allocations: 3.953 kB / 0.9854 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.143e-05/0.2467, allocations: 0 / 0.9854 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.048e-06/0.2467, allocations: 0 / 0.9854 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.2467, allocations: 0 / 0.9854 GB, free: 20.65 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002961/0.247, allocations: 199.1 kB / 0.9856 GB, free: 20.44 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.2472, allocations: 116.7 kB / 0.9857 GB, free: 20.31 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.889e-05/0.2473, allocations: 7.938 kB / 0.9857 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001598/0.2474, allocations: 4 kB / 0.9857 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.662e-05/0.2475, allocations: 0 / 0.9857 GB, free: 20.3 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-06/0.2475, allocations: 4 kB / 0.9857 GB, free: 20.29 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 0.0006316/0.2482, allocations: 419.1 kB / 0.9861 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of sort global known variables: time 4.91e-07/0.2482, allocations: 0 / 0.9861 GB, free: 19.89 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0004186/0.2486, allocations: 24 kB / 0.9862 GB, free: 19.86 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.001447/0.2501, allocations: 0.9752 MB / 0.9871 GB, free: 19 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0002747/0.2504, allocations: 35.97 kB / 0.9872 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.2504, allocations: 0 / 0.9872 GB, free: 18.96 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 8.41e-05/0.2505, allocations: 23.98 kB / 0.9872 GB, free: 18.94 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005125/0.251, allocations: 46.75 kB / 0.9872 GB, free: 18.89 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004336/0.2554, allocations: 1.876 MB / 0.9891 GB, free: 16.97 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003036/0.2557, allocations: 0.7911 MB / 0.9898 GB, free: 16.15 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 0.0002108/0.256, allocations: 50.92 kB / 0.9899 GB, free: 16.11 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.2562, allocations: 94.34 kB / 0.99 GB, free: 16.02 MB / 0.6198 GB Notification: Performance of SimCode: time 1.462e-06/0.2562, allocations: 0 / 0.99 GB, free: 16.02 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03644/0.2926, allocations: 5.397 MB / 0.9952 GB, free: 10.83 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000287/0.293, allocations: 254.2 kB / 0.9955 GB, free: 10.49 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.657/2.95, allocations: 0 / 0.9955 GB, free: 10.49 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)