Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Actuators.Motors.Examples.IdealMotor.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.Fluid.Actuators.Motors.Examples.IdealMotor,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Actuators_Motors_Examples_IdealMotor",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 4.329/4.329, allocations: 433 MB / 440.3 MB, free: 4.797 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5583/4.887, allocations: 104.3 MB / 0.5319 GB, free: 13 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2451/5.132, allocations: 98.73 MB / 0.6283 GB, free: 9.734 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2583/5.39, allocations: 126.4 MB / 0.7518 GB, free: 11.11 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003677/5.391, allocations: 83.59 kB / 0.7519 GB, free: 11.04 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0289/5.42, allocations: 5.829 MB / 0.7576 GB, free: 5.141 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/5.42, allocations: 8 kB / 0.7576 GB, free: 5.133 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/5.42, allocations: 35.62 kB / 0.7576 GB, free: 5.098 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007884/5.421, allocations: 270.7 kB / 0.7579 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.806e-05/5.421, allocations: 8 kB / 0.7579 GB, free: 4.789 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.778e-05/5.421, allocations: 8 kB / 0.7579 GB, free: 4.781 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004039/5.421, allocations: 124.1 kB / 0.758 GB, free: 4.66 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004821/5.422, allocations: 193.3 kB / 0.7582 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/5.422, allocations: 0 / 0.7582 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.632e-05/5.422, allocations: 4 kB / 0.7582 GB, free: 4.453 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.044e-05/5.422, allocations: 7.891 kB / 0.7582 GB, free: 4.445 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001431/5.423, allocations: 0.5145 MB / 0.7587 GB, free: 3.895 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003876/5.424, allocations: 162.4 kB / 0.7588 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002394/5.424, allocations: 100.9 kB / 0.7589 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.973e-05/5.424, allocations: 0 / 0.7589 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003465/5.424, allocations: 165 kB / 0.7591 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=15): time 4.799e-06/5.424, allocations: 0 / 0.7591 GB, free: 3.445 MB / 0.6355 GB Notification: Performance of matching and sorting (n=15): time 0.0007405/5.425, allocations: 233.2 kB / 0.7593 GB, free: 3.211 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.275e-05/5.425, allocations: 128.5 kB / 0.7594 GB, free: 3.055 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003652/5.426, allocations: 220.3 kB / 0.7596 GB, free: 2.836 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 4.748e-05/5.426, allocations: 25.7 kB / 0.7597 GB, free: 2.805 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/5.426, allocations: 124.2 kB / 0.7598 GB, free: 2.68 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 7.271e-05/5.426, allocations: 43.45 kB / 0.7598 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.912e-05/5.426, allocations: 0 / 0.7598 GB, free: 2.637 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001551/5.426, allocations: 330.8 kB / 0.7601 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000237/5.426, allocations: 88.09 kB / 0.7602 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002722/5.427, allocations: 119.4 kB / 0.7603 GB, free: 2.09 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003194/5.427, allocations: 83.91 kB / 0.7604 GB, free: 2.008 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/5.427, allocations: 3.938 kB / 0.7604 GB, free: 2.004 MB / 0.6355 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0006487/5.428, allocations: 242.5 kB / 0.7607 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.849e-05/5.428, allocations: 4 kB / 0.7607 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/5.428, allocations: 0 / 0.7607 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.362e-05/5.428, allocations: 4 kB / 0.7607 GB, free: 1.754 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002805/5.428, allocations: 27.98 kB / 0.7607 GB, free: 1.727 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.751e-06/5.428, allocations: 4 kB / 0.7607 GB, free: 1.723 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003193/5.428, allocations: 47.81 kB / 0.7607 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.678e-05/5.428, allocations: 12 kB / 0.7608 GB, free: 1.664 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * 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.0001817/5.429, allocations: 138.7 kB / 0.7609 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.175e-05/5.429, allocations: 23.72 kB / 0.7609 GB, free: 1.492 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/5.429, allocations: 25.77 kB / 0.7609 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/5.429, allocations: 0 / 0.7609 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.211e-06/5.429, allocations: 0 / 0.7609 GB, free: 1.465 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.125e-05/5.429, allocations: 7.906 kB / 0.7609 GB, free: 1.457 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003523/5.429, allocations: 258.1 kB / 0.7612 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/5.429, allocations: 0 / 0.7612 GB, free: 1.168 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002189/5.429, allocations: 19.98 kB / 0.7612 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/5.429, allocations: 0 / 0.7612 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/5.429, allocations: 15.89 kB / 0.7612 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.608e-06/5.429, allocations: 11.88 kB / 0.7612 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/5.429, allocations: 0 / 0.7612 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001038/5.431, allocations: 396.6 kB / 0.7616 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001418/5.432, allocations: 0.8802 MB / 0.7625 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 9.291e-05/5.432, allocations: 100.8 kB / 0.7626 GB, free: 15.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.102e-05/5.432, allocations: 8.094 kB / 0.7626 GB, free: 15.69 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/5.433, allocations: 40.03 kB / 0.7626 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001236/5.433, allocations: 23.95 kB / 0.7626 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.099e-05/5.433, allocations: 8 kB / 0.7626 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0002817/5.433, allocations: 180.5 kB / 0.7628 GB, free: 15.44 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001237/5.434, allocations: 55.84 kB / 0.7629 GB, free: 15.38 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (mot.int.y) * Number of discrete variables: 8 ($whenCondition1,mot.uppHys.y,mot.lowHys.y,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled) * Number of discrete states: 8 (ySet.nextEvent,ySet.last,ySet.nextEventScaled,ySet.b,ySet.a,$whenCondition1,mot.lowHys.y,mot.uppHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 1 * 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.0003175/5.435, allocations: 127.2 kB / 0.763 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0005135/5.435, allocations: 202 kB / 0.7632 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/5.435, allocations: 0 / 0.7632 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0002649/5.435, allocations: 145.6 kB / 0.7633 GB, free: 14.89 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004074/5.436, allocations: 25.17 kB / 0.7633 GB, free: 14.87 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001432/5.437, allocations: 332.6 kB / 0.7637 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005488/5.438, allocations: 0.7744 MB / 0.7644 GB, free: 13.72 MB / 0.6511 GB Notification: Performance of SimCode: time 3.937e-06/5.438, allocations: 0 / 0.7644 GB, free: 13.72 MB / 0.6511 GB