Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Controls.OBC.CDL.Logical.Validation.IntegerSwitch.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.Controls.OBC.CDL.Logical.Validation.IntegerSwitch,fileNamePrefix="Buildings_6_0_0_Buildings_Controls_OBC_CDL_Logical_Validation_IntegerSwitch",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.145/4.145, allocations: 433 MB / 440.3 MB, free: 4.855 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.6145/4.76, allocations: 104.3 MB / 0.5319 GB, free: 12.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2229/4.983, allocations: 98.72 MB / 0.6283 GB, free: 9.758 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2423/5.225, allocations: 123.9 MB / 0.7493 GB, free: 13.64 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002642/5.226, allocations: 71.61 kB / 0.7494 GB, free: 13.57 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.008956/5.234, allocations: 1.723 MB / 0.7511 GB, free: 11.8 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.383e-05/5.235, allocations: 11.98 kB / 0.7511 GB, free: 11.79 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001088/5.235, allocations: 15.81 kB / 0.7511 GB, free: 11.77 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/5.235, allocations: 193.8 kB / 0.7513 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.294e-05/5.235, allocations: 4 kB / 0.7513 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.451e-05/5.235, allocations: 4 kB / 0.7513 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000272/5.235, allocations: 52.36 kB / 0.7514 GB, free: 11.49 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002875/5.236, allocations: 78.89 kB / 0.7514 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/5.236, allocations: 0 / 0.7514 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.237e-05/5.236, allocations: 0 / 0.7514 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/5.236, allocations: 4 kB / 0.7514 GB, free: 11.4 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009497/5.237, allocations: 349.6 kB / 0.7518 GB, free: 11.02 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002128/5.237, allocations: 66.78 kB / 0.7518 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/5.237, allocations: 40.84 kB / 0.7519 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/5.237, allocations: 0 / 0.7519 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001765/5.237, allocations: 87.28 kB / 0.752 GB, free: 10.81 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 2.554e-06/5.237, allocations: 3.938 kB / 0.752 GB, free: 10.8 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0003171/5.238, allocations: 97.52 kB / 0.7521 GB, free: 10.7 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.478e-05/5.238, allocations: 59.41 kB / 0.7521 GB, free: 10.63 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/5.238, allocations: 129.1 kB / 0.7522 GB, free: 10.5 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.3e-05/5.238, allocations: 25.7 kB / 0.7523 GB, free: 10.47 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.773e-05/5.238, allocations: 104 kB / 0.7524 GB, free: 10.36 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 4.284e-05/5.238, allocations: 31.61 kB / 0.7524 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.138e-05/5.238, allocations: 4 kB / 0.7524 GB, free: 10.33 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001725/5.238, allocations: 318.8 kB / 0.7527 GB, free: 10.01 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.772e-05/5.238, allocations: 24 kB / 0.7527 GB, free: 9.984 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001219/5.238, allocations: 47.44 kB / 0.7528 GB, free: 9.926 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.617e-05/5.239, allocations: 32.11 kB / 0.7528 GB, free: 9.895 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/5.239, allocations: 0 / 0.7528 GB, free: 9.895 MB / 0.6355 GB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003388/5.239, allocations: 113.4 kB / 0.7529 GB, free: 9.777 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/5.239, allocations: 6.656 kB / 0.7529 GB, free: 9.773 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/5.239, allocations: 0 / 0.7529 GB, free: 9.773 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/5.239, allocations: 4 kB / 0.7529 GB, free: 9.77 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001816/5.239, allocations: 15.94 kB / 0.7529 GB, free: 9.754 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/5.239, allocations: 96 / 0.7529 GB, free: 9.754 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002773/5.24, allocations: 39.81 kB / 0.753 GB, free: 9.715 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/5.24, allocations: 7.938 kB / 0.753 GB, free: 9.707 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 17 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,$PRE.booPul1.pulseStart,booPul1.pulseStart,booPul2.y,$PRE.booPul2.pulseStart,booPul2.pulseStart,booPul3.y,$PRE.booPul3.pulseStart,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001267/5.24, allocations: 123 kB / 0.7531 GB, free: 9.582 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.102e-05/5.24, allocations: 11.81 kB / 0.7531 GB, free: 9.57 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.297e-05/5.24, allocations: 16.55 kB / 0.7531 GB, free: 9.555 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/5.24, allocations: 0 / 0.7531 GB, free: 9.555 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.787e-06/5.24, allocations: 4 kB / 0.7531 GB, free: 9.551 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/5.24, allocations: 0 / 0.7531 GB, free: 9.551 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002834/5.24, allocations: 186.2 kB / 0.7533 GB, free: 9.332 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.175e-06/5.24, allocations: 0 / 0.7533 GB, free: 9.332 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.617e-05/5.24, allocations: 15.91 kB / 0.7533 GB, free: 9.316 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/5.24, allocations: 0 / 0.7533 GB, free: 9.316 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.421e-05/5.24, allocations: 4 kB / 0.7533 GB, free: 9.312 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.296e-06/5.24, allocations: 0 / 0.7533 GB, free: 9.312 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/5.24, allocations: 0 / 0.7533 GB, free: 9.312 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002988/5.241, allocations: 132.9 kB / 0.7534 GB, free: 9.164 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003795/5.241, allocations: 0.4936 MB / 0.7539 GB, free: 8.648 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 9.213e-05/5.241, allocations: 92.92 kB / 0.754 GB, free: 8.539 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.423e-05/5.241, allocations: 0 / 0.754 GB, free: 8.539 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003041/5.242, allocations: 27.97 kB / 0.754 GB, free: 8.512 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.353e-05/5.242, allocations: 11.98 kB / 0.7541 GB, free: 8.5 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.531e-05/5.242, allocations: 8 kB / 0.7541 GB, free: 8.492 MB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001091/5.242, allocations: 103.3 kB / 0.7542 GB, free: 8.391 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001208/5.243, allocations: 31.78 kB / 0.7542 GB, free: 8.359 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: 14 ($whenCondition3,$whenCondition2,$whenCondition1,integerSwitch.u1,integerSwitch.u3,integerSwitch.y,booPul1.y,booPul1.pulseStart,booPul2.y,booPul2.pulseStart,booPul3.y,booPul3.pulseStart,booToInt.y,booToInt1.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.0001885/5.243, allocations: 110.7 kB / 0.7543 GB, free: 8.246 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002967/5.244, allocations: 72 kB / 0.7544 GB, free: 8.176 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/5.244, allocations: 0 / 0.7544 GB, free: 8.176 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001414/5.244, allocations: 48.12 kB / 0.7544 GB, free: 8.129 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003947/5.244, allocations: 15.92 kB / 0.7544 GB, free: 8.113 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005868/5.245, allocations: 160 kB / 0.7546 GB, free: 7.934 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005941/5.245, allocations: 0.7309 MB / 0.7553 GB, free: 7.176 MB / 0.6355 GB Notification: Performance of SimCode: time 2.495e-06/5.245, allocations: 0 / 0.7553 GB, free: 7.176 MB / 0.6355 GB