Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.01101/0.01101, allocations: 88.36 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001176/0.001176, allocations: 173.8 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.109/2.109, allocations: 205.5 MB / 222.2 MB, free: 13.73 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.604/2.604, allocations: 252.8 MB / 0.511 GB, free: 8.348 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005096/0.0005098, allocations: 14.44 kB / 0.6243 GB, free: 28.34 MB / 0.4949 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2329/0.2334, allocations: 106.2 MB / 0.7281 GB, free: 10.15 MB / 0.5574 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo): time 0.002834/0.2363, allocations: 1.46 MB / 0.7295 GB, free: 8.676 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.001881/0.2383, allocations: 0.7735 MB / 0.7303 GB, free: 7.895 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001496/0.2384, allocations: 4 kB / 0.7303 GB, free: 7.891 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 0.0006525/0.2391, allocations: 160.2 kB / 0.7304 GB, free: 7.738 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 0.000471/0.2396, allocations: 135.4 kB / 0.7305 GB, free: 7.605 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006491/0.2403, allocations: 159.6 kB / 0.7307 GB, free: 7.449 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.0003568/0.2406, allocations: 143.7 kB / 0.7308 GB, free: 7.309 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.2408, allocations: 41.83 kB / 0.7309 GB, free: 7.27 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000188/0.241, allocations: 75.67 kB / 0.7309 GB, free: 7.195 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002663/0.2413, allocations: 127.6 kB / 0.7311 GB, free: 7.07 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 4.1e-05/0.2414, allocations: 15.94 kB / 0.7311 GB, free: 7.055 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.2415, allocations: 31.91 kB / 0.7311 GB, free: 7.023 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 0.0001271/0.2417, allocations: 67.75 kB / 0.7312 GB, free: 6.957 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 7.834e-05/0.2417, allocations: 65.58 kB / 0.7312 GB, free: 6.887 MB / 0.5574 GB Notification: Performance of NFConvertDAE.convert: time 0.0004796/0.2422, allocations: 287.6 kB / 0.7315 GB, free: 6.605 MB / 0.5574 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2423, allocations: 0 / 0.7315 GB, free: 6.605 MB / 0.5574 GB Notification: Performance of FrontEnd: time 2.174e-06/0.2423, allocations: 0 / 0.7315 GB, free: 6.605 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 7.033e-06/0.2423, allocations: 0 / 0.7315 GB, free: 6.605 MB / 0.5574 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.001117/0.2434, allocations: 0.5602 MB / 0.7321 GB, free: 5.996 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.2435, allocations: 12.03 kB / 0.7321 GB, free: 5.984 MB / 0.5574 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.714e-05/0.2436, allocations: 42.52 kB / 0.7321 GB, free: 5.934 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.193e-05/0.2436, allocations: 27.62 kB / 0.7321 GB, free: 5.906 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008711/0.2445, allocations: 401.2 kB / 0.7325 GB, free: 5.473 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.2446, allocations: 4 kB / 0.7325 GB, free: 5.469 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.608e-05/0.2446, allocations: 8 kB / 0.7325 GB, free: 5.461 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002706/0.2449, allocations: 81.59 kB / 0.7326 GB, free: 5.375 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2449, allocations: 0 / 0.7326 GB, free: 5.375 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.386e-05/0.2449, allocations: 0 / 0.7326 GB, free: 5.375 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.2449, allocations: 7.953 kB / 0.7326 GB, free: 5.367 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002188/0.2452, allocations: 47.97 kB / 0.7327 GB, free: 5.32 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009429/0.2461, allocations: 492.4 kB / 0.7331 GB, free: 4.789 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001955/0.2463, allocations: 50.56 kB / 0.7332 GB, free: 4.73 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 5.136e-05/0.2464, allocations: 3.984 kB / 0.7332 GB, free: 4.727 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.2465, allocations: 30.56 kB / 0.7332 GB, free: 4.688 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=3): time 2.705e-06/0.2465, allocations: 0 / 0.7332 GB, free: 4.688 MB / 0.5574 GB Notification: Performance of matching and sorting (n=3): time 0.0004469/0.2469, allocations: 117.4 kB / 0.7333 GB, free: 4.566 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.433e-05/0.247, allocations: 51.41 kB / 0.7334 GB, free: 4.504 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001008/0.248, allocations: 0.5484 MB / 0.7339 GB, free: 3.949 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.248, allocations: 25.7 kB / 0.7339 GB, free: 3.918 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001907/0.2482, allocations: 179.9 kB / 0.7341 GB, free: 3.738 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 2.528e-05/0.2483, allocations: 3.906 kB / 0.7341 GB, free: 3.734 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.2483, allocations: 0 / 0.7341 GB, free: 3.734 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001739/0.2485, allocations: 346.8 kB / 0.7344 GB, free: 3.387 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.247e-05/0.2486, allocations: 16 kB / 0.7345 GB, free: 3.371 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.75e-05/0.2487, allocations: 15.98 kB / 0.7345 GB, free: 3.355 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.432e-05/0.2488, allocations: 19.98 kB / 0.7345 GB, free: 3.336 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.2488, allocations: 3.953 kB / 0.7345 GB, free: 3.332 MB / 0.5574 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002885/0.2491, allocations: 89.25 kB / 0.7346 GB, free: 3.238 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.2491, allocations: 8 kB / 0.7346 GB, free: 3.23 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.2491, allocations: 7.984 kB / 0.7346 GB, free: 3.223 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.52e-05/0.2492, allocations: 0 / 0.7346 GB, free: 3.223 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001178/0.2493, allocations: 8 kB / 0.7346 GB, free: 3.215 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.2493, allocations: 3.938 kB / 0.7346 GB, free: 3.211 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.2494, allocations: 7.938 kB / 0.7346 GB, free: 3.203 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.2495, allocations: 0 / 0.7346 GB, free: 3.203 MB / 0.5574 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.000238/0.2497, allocations: 181.8 kB / 0.7348 GB, free: 3.016 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.039e-05/0.2498, allocations: 35.58 kB / 0.7348 GB, free: 2.98 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003465/0.2502, allocations: 108.1 kB / 0.7349 GB, free: 2.863 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.2502, allocations: 0 / 0.7349 GB, free: 2.863 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.2502, allocations: 0 / 0.7349 GB, free: 2.863 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.2502, allocations: 3.984 kB / 0.7349 GB, free: 2.859 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004302/0.2506, allocations: 281.5 kB / 0.7352 GB, free: 2.535 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.2507, allocations: 0 / 0.7352 GB, free: 2.535 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000101/0.2508, allocations: 12.33 kB / 0.7352 GB, free: 2.523 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.2508, allocations: 7.984 kB / 0.7352 GB, free: 2.516 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.2508, allocations: 112 / 0.7352 GB, free: 2.516 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.669e-06/0.2508, allocations: 7.938 kB / 0.7352 GB, free: 2.508 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-06/0.2508, allocations: 0 / 0.7352 GB, free: 2.508 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.2512, allocations: 187.1 kB / 0.7354 GB, free: 2.309 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001631/0.2513, allocations: 124.7 kB / 0.7355 GB, free: 2.168 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.2514, allocations: 11.95 kB / 0.7355 GB, free: 2.156 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.2516, allocations: 0 / 0.7355 GB, free: 2.156 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.716e-05/0.2516, allocations: 11.92 kB / 0.7355 GB, free: 2.145 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.745e-06/0.2516, allocations: 0 / 0.7355 GB, free: 2.145 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 0.0007501/0.2524, allocations: 419.1 kB / 0.7359 GB, free: 1.734 MB / 0.5574 GB Notification: Performance of sort global known variables: time 4.81e-07/0.2524, allocations: 0 / 0.7359 GB, free: 1.734 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.000384/0.2528, allocations: 27.91 kB / 0.736 GB, free: 1.707 MB / 0.5574 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.001698/0.2545, allocations: 0.9807 MB / 0.7369 GB, free: 0.8281 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0002551/0.2548, allocations: 39.92 kB / 0.737 GB, free: 0.7891 MB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2548, allocations: 0 / 0.737 GB, free: 0.7891 MB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 9.448e-05/0.2549, allocations: 19.98 kB / 0.737 GB, free: 0.7695 MB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004911/0.2554, allocations: 41.48 kB / 0.737 GB, free: 0.7266 MB / 0.5574 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004751/0.2602, allocations: 1.879 MB / 0.7389 GB, free: 14.81 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005184/0.2608, allocations: 0.7989 MB / 0.7396 GB, free: 13.98 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0002254/0.261, allocations: 42.94 kB / 0.7397 GB, free: 13.94 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002157/0.2612, allocations: 87.39 kB / 0.7398 GB, free: 13.86 MB / 0.573 GB Notification: Performance of SimCode: time 1.102e-06/0.2612, allocations: 0 / 0.7398 GB, free: 13.86 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03326/0.2945, allocations: 5.409 MB / 0.745 GB, free: 8.566 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003675/0.295, allocations: 263.6 kB / 0.7453 GB, free: 8.207 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.78/3.075, allocations: 0 / 0.7453 GB, free: 8.207 MB / 0.573 GB