Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValvesMotor.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.Valves.Examples.TwoWayValvesMotor,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValvesMotor",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.926/3.926, allocations: 433 MB / 440.3 MB, free: 4.852 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5265/4.452, allocations: 104.3 MB / 0.5319 GB, free: 12.99 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/4.701, allocations: 98.72 MB / 0.6283 GB, free: 9.902 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.031/5.732, allocations: 385.4 MB / 1.005 GB, free: 2.719 MB / 0.7449 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003687/5.733, allocations: 98.44 kB / 1.005 GB, free: 2.664 MB / 0.7449 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 134 * Number of variables: 134 Notification: Performance of Generate backend data structure: time 1.637/7.37, allocations: 290.7 MB / 1.289 GB, free: 121.1 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.432e-05/7.37, allocations: 8 kB / 1.289 GB, free: 121.1 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004348/7.371, allocations: 114.7 kB / 1.289 GB, free: 121 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002417/7.373, allocations: 0.6563 MB / 1.289 GB, free: 120.3 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.942e-05/7.373, allocations: 16 kB / 1.289 GB, free: 120.3 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001852/7.373, allocations: 40 kB / 1.289 GB, free: 120.3 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001149/7.374, allocations: 378.5 kB / 1.29 GB, free: 119.9 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/7.376, allocations: 0.5483 MB / 1.29 GB, free: 119.3 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.635e-05/7.376, allocations: 0 / 1.29 GB, free: 119.3 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-05/7.376, allocations: 3.984 kB / 1.29 GB, free: 119.3 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/7.376, allocations: 19.91 kB / 1.29 GB, free: 119.3 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005356/7.381, allocations: 2.574 MB / 1.293 GB, free: 116.6 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008677/7.382, allocations: 311.4 kB / 1.293 GB, free: 116.3 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003764/7.383, allocations: 157 kB / 1.293 GB, free: 116.1 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.793e-05/7.383, allocations: 4.234 kB / 1.293 GB, free: 116.1 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005428/7.383, allocations: 304.8 kB / 1.294 GB, free: 115.8 MB / 0.823 GB Notification: Performance of pre-optimization done (n=33): time 2.855e-06/7.383, allocations: 0 / 1.294 GB, free: 115.8 MB / 0.823 GB Notification: Performance of matching and sorting (n=33): time 0.002786/7.386, allocations: 0.4935 MB / 1.294 GB, free: 115.3 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.426e-05/7.386, allocations: 191.9 kB / 1.294 GB, free: 115.1 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001213/7.387, allocations: 0.5943 MB / 1.295 GB, free: 114.5 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0001745/7.388, allocations: 29.7 kB / 1.295 GB, free: 114.4 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002678/7.388, allocations: 315.8 kB / 1.295 GB, free: 114.1 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/7.388, allocations: 102.5 kB / 1.295 GB, free: 114 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/7.388, allocations: 0 / 1.295 GB, free: 114 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 7.991e-05/7.388, allocations: 326 kB / 1.296 GB, free: 113.7 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004825/7.389, allocations: 181.1 kB / 1.296 GB, free: 113.5 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006192/7.389, allocations: 369.4 kB / 1.296 GB, free: 113.1 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001578/7.391, allocations: 317.1 kB / 1.296 GB, free: 112.8 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/7.391, allocations: 0 / 1.296 GB, free: 112.8 MB / 0.823 GB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002701/7.394, allocations: 0.6747 MB / 1.297 GB, free: 112.1 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002591/7.394, allocations: 0.8712 MB / 1.298 GB, free: 111.2 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.235e-05/7.394, allocations: 4 kB / 1.298 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.124e-05/7.394, allocations: 8 kB / 1.298 GB, free: 111.1 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001964/7.396, allocations: 159.9 kB / 1.298 GB, free: 111 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001471/7.398, allocations: 1.805 MB / 1.3 GB, free: 109.1 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00163/7.399, allocations: 119.7 kB / 1.3 GB, free: 109 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001504/7.399, allocations: 31.98 kB / 1.3 GB, free: 109 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/7.399, allocations: 4 kB / 1.3 GB, free: 109 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002143/7.402, allocations: 0.5412 MB / 1.301 GB, free: 108.4 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/7.402, allocations: 4 kB / 1.301 GB, free: 108.4 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.327e-05/7.402, allocations: 7.906 kB / 1.301 GB, free: 108.4 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/7.403, allocations: 132.1 kB / 1.301 GB, free: 108.3 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.647e-06/7.403, allocations: 4 kB / 1.301 GB, free: 108.3 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001429/7.404, allocations: 99.59 kB / 1.301 GB, free: 108.2 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001071/7.404, allocations: 28 kB / 1.301 GB, free: 108.1 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,ySet.a,ySet.b,ySet.last,$PRE.ySet.nextEvent,ySet.nextEvent,ySet.nextEventScaled,$PRE.mot.uppHys.y,mot.uppHys.y,$PRE.mot.lowHys.y,mot.lowHys.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 58 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002996/7.405, allocations: 163.9 kB / 1.301 GB, free: 108 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001973/7.405, allocations: 82.97 kB / 1.301 GB, free: 107.9 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002196/7.407, allocations: 0.5439 MB / 1.302 GB, free: 107.3 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.749e-06/7.407, allocations: 4 kB / 1.302 GB, free: 107.3 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/7.407, allocations: 0 / 1.302 GB, free: 107.3 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.2e-05/7.407, allocations: 0 / 1.302 GB, free: 107.3 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003957/7.411, allocations: 1.155 MB / 1.303 GB, free: 106.1 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/7.411, allocations: 0 / 1.303 GB, free: 106.1 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008041/7.412, allocations: 87.83 kB / 1.303 GB, free: 106.1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.038e-05/7.412, allocations: 4 kB / 1.303 GB, free: 106 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.134e-05/7.412, allocations: 7.984 kB / 1.303 GB, free: 106 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/7.413, allocations: 1.778 MB / 1.305 GB, free: 104.2 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.992e-06/7.413, allocations: 0 / 1.305 GB, free: 104.2 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002726/7.416, allocations: 0.8146 MB / 1.305 GB, free: 103.4 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003228/7.419, allocations: 1.44 MB / 1.307 GB, free: 101.9 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006478/7.42, allocations: 216.7 kB / 1.307 GB, free: 101.7 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001927/7.42, allocations: 8 kB / 1.307 GB, free: 101.7 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001071/7.421, allocations: 72.05 kB / 1.307 GB, free: 101.6 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001529/7.421, allocations: 35.94 kB / 1.307 GB, free: 101.6 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-05/7.422, allocations: 27.92 kB / 1.307 GB, free: 101.5 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0008182/7.422, allocations: 455.1 kB / 1.308 GB, free: 101.1 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.004012/7.426, allocations: 0.5536 MB / 1.308 GB, free: 100.5 MB / 0.823 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,ySet.a,ySet.b,ySet.last,ySet.nextEvent,ySet.nextEventScaled,mot.uppHys.y,mot.lowHys.y) * 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 (30): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001457/7.428, allocations: 495.3 kB / 1.309 GB, free: 100.1 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.003001/7.431, allocations: 0.7765 MB / 1.309 GB, free: 99.28 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 7.054e-06/7.431, allocations: 0 / 1.309 GB, free: 99.28 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0008016/7.432, allocations: 254.6 kB / 1.31 GB, free: 99.03 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003316/7.435, allocations: 288.8 kB / 1.31 GB, free: 98.74 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003865/7.439, allocations: 0.9697 MB / 1.311 GB, free: 97.75 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001251/7.44, allocations: 1.064 MB / 1.312 GB, free: 96.66 MB / 0.823 GB Notification: Performance of SimCode: time 1.563e-06/7.44, allocations: 0 / 1.312 GB, free: 96.66 MB / 0.823 GB