Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 3.774/3.774, allocations: 433 MB / 440.3 MB, free: 4.824 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.4985/4.272, allocations: 104.3 MB / 0.5319 GB, free: 13.07 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/4.538, allocations: 98.73 MB / 0.6283 GB, free: 9.809 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2925/4.831, allocations: 126.1 MB / 0.7515 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003377/4.831, allocations: 99.56 kB / 0.7516 GB, free: 11.4 MB / 0.6355 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.02018/4.851, allocations: 4.71 MB / 0.7562 GB, free: 6.625 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.429e-05/4.851, allocations: 8 kB / 0.7562 GB, free: 6.617 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/4.852, allocations: 31.62 kB / 0.7562 GB, free: 6.586 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009551/4.853, allocations: 403.8 kB / 0.7566 GB, free: 6.152 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.538e-06/4.853, allocations: 0 / 0.7566 GB, free: 6.152 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.781e-05/4.853, allocations: 7.938 kB / 0.7566 GB, free: 6.145 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001527/4.853, allocations: 32 kB / 0.7566 GB, free: 6.113 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001668/4.853, allocations: 73.58 kB / 0.7567 GB, free: 6.035 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/4.853, allocations: 0 / 0.7567 GB, free: 6.035 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/4.853, allocations: 0 / 0.7567 GB, free: 6.035 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.656e-06/4.853, allocations: 4 kB / 0.7567 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001021/4.854, allocations: 476.9 kB / 0.7572 GB, free: 5.527 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001513/4.854, allocations: 46.67 kB / 0.7572 GB, free: 5.473 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.36e-05/4.854, allocations: 20.86 kB / 0.7572 GB, free: 5.449 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.94e-05/4.854, allocations: 3.938 kB / 0.7572 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/4.854, allocations: 30.56 kB / 0.7573 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.254e-06/4.854, allocations: 0 / 0.7573 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.000308/4.855, allocations: 89.34 kB / 0.7574 GB, free: 5.312 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/4.855, allocations: 51.41 kB / 0.7574 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009533/4.856, allocations: 470 kB / 0.7578 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.255e-05/4.856, allocations: 25.7 kB / 0.7579 GB, free: 4.754 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 9.371e-05/4.856, allocations: 120 kB / 0.758 GB, free: 4.633 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.64e-05/4.856, allocations: 19.75 kB / 0.758 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.763e-06/4.856, allocations: 0 / 0.758 GB, free: 4.613 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.000149/4.856, allocations: 338.8 kB / 0.7583 GB, free: 4.273 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.816e-05/4.856, allocations: 12 kB / 0.7583 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.214e-05/4.856, allocations: 12 kB / 0.7584 GB, free: 4.25 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.08e-05/4.856, allocations: 15.98 kB / 0.7584 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/4.856, allocations: 0 / 0.7584 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002357/4.856, allocations: 85.31 kB / 0.7584 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/4.857, allocations: 11.94 kB / 0.7585 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/4.857, allocations: 0 / 0.7585 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/4.857, allocations: 0 / 0.7585 GB, free: 4.133 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/4.857, allocations: 11.98 kB / 0.7585 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/4.857, allocations: 0 / 0.7585 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001368/4.857, allocations: 11.91 kB / 0.7585 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/4.857, allocations: 3.984 kB / 0.7585 GB, free: 4.105 MB / 0.6355 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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 8.038e-05/4.857, allocations: 105 kB / 0.7586 GB, free: 3.996 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.775e-05/4.857, allocations: 27.62 kB / 0.7586 GB, free: 3.969 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002981/4.857, allocations: 96.09 kB / 0.7587 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/4.857, allocations: 0 / 0.7587 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/4.857, allocations: 0 / 0.7587 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/4.857, allocations: 0 / 0.7587 GB, free: 3.859 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000409/4.858, allocations: 282 kB / 0.759 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/4.858, allocations: 192 / 0.759 GB, free: 3.547 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.912e-05/4.858, allocations: 11.94 kB / 0.759 GB, free: 3.535 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.017e-06/4.858, allocations: 4 kB / 0.759 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/4.858, allocations: 0 / 0.759 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/4.858, allocations: 0 / 0.759 GB, free: 3.531 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/4.858, allocations: 3.938 kB / 0.759 GB, free: 3.527 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002706/4.858, allocations: 179.2 kB / 0.7592 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004628/4.859, allocations: 0.5504 MB / 0.7597 GB, free: 2.766 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000186/4.859, allocations: 128.8 kB / 0.7598 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.947e-05/4.859, allocations: 0 / 0.7598 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/4.859, allocations: 7.984 kB / 0.7598 GB, free: 2.613 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.609e-05/4.859, allocations: 3.984 kB / 0.7598 GB, free: 2.609 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.016e-06/4.859, allocations: 4 kB / 0.7598 GB, free: 2.605 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0007504/4.86, allocations: 376.4 kB / 0.7602 GB, free: 2.242 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001234/4.861, allocations: 39.94 kB / 0.7602 GB, free: 2.203 MB / 0.6355 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 () * 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.0006915/4.862, allocations: 228 kB / 0.7605 GB, free: 1.996 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002258/4.862, allocations: 83.41 kB / 0.7605 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/4.862, allocations: 0 / 0.7605 GB, free: 1.902 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.211e-05/4.862, allocations: 19.92 kB / 0.7606 GB, free: 1.883 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004475/4.863, allocations: 25.78 kB / 0.7606 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/4.864, allocations: 388.2 kB / 0.7609 GB, free: 1.438 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006465/4.865, allocations: 0.817 MB / 0.7617 GB, free: 0.5977 MB / 0.6355 GB Notification: Performance of SimCode: time 1.463e-06/4.865, allocations: 0 / 0.7617 GB, free: 0.5977 MB / 0.6355 GB