Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Electrical.Utilities.Examples.TestVoltageCTRL.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.Electrical.Utilities.Examples.TestVoltageCTRL,fileNamePrefix="Buildings_6_0_0_Buildings_Electrical_Utilities_Examples_TestVoltageCTRL",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.17/4.17, allocations: 433 MB / 440.3 MB, free: 4.824 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5571/4.727, allocations: 104.3 MB / 0.5319 GB, free: 13.04 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2351/4.963, allocations: 98.73 MB / 0.6283 GB, free: 9.824 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2739/5.236, allocations: 140.5 MB / 0.7655 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004492/5.237, allocations: 79.59 kB / 0.7656 GB, free: 13.04 MB / 0.6511 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0254/5.262, allocations: 5.71 MB / 0.7711 GB, free: 7.199 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/5.263, allocations: 8 kB / 0.7711 GB, free: 7.191 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003582/5.263, allocations: 23.8 kB / 0.7712 GB, free: 7.168 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/5.263, allocations: 213.7 kB / 0.7714 GB, free: 6.922 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.086e-05/5.263, allocations: 33.88 kB / 0.7714 GB, free: 6.883 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.713e-05/5.263, allocations: 11.94 kB / 0.7714 GB, free: 6.871 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002414/5.264, allocations: 60.17 kB / 0.7715 GB, free: 6.812 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003144/5.264, allocations: 136.4 kB / 0.7716 GB, free: 6.668 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.043e-05/5.264, allocations: 4 kB / 0.7716 GB, free: 6.664 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.044e-05/5.264, allocations: 0 / 0.7716 GB, free: 6.664 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.082e-05/5.264, allocations: 8.188 kB / 0.7716 GB, free: 6.656 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/5.265, allocations: 0.6107 MB / 0.7722 GB, free: 5.996 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002743/5.265, allocations: 50.55 kB / 0.7723 GB, free: 5.938 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.581e-05/5.266, allocations: 20.98 kB / 0.7723 GB, free: 5.914 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 1.895e-05/5.266, allocations: 8 kB / 0.7723 GB, free: 5.906 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001756/5.266, allocations: 114.8 kB / 0.7724 GB, free: 5.77 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=7): time 1.983e-06/5.266, allocations: 0 / 0.7724 GB, free: 5.77 MB / 0.6511 GB Notification: Performance of matching and sorting (n=7): time 0.0002715/5.266, allocations: 77.53 kB / 0.7725 GB, free: 5.688 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/5.266, allocations: 132.5 kB / 0.7726 GB, free: 5.527 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/5.266, allocations: 165.3 kB / 0.7728 GB, free: 5.359 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.467e-05/5.266, allocations: 25.7 kB / 0.7728 GB, free: 5.328 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/5.267, allocations: 127.6 kB / 0.7729 GB, free: 5.199 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.231e-05/5.267, allocations: 23.64 kB / 0.7729 GB, free: 5.176 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.078e-05/5.267, allocations: 0 / 0.7729 GB, free: 5.176 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001552/5.267, allocations: 326.8 kB / 0.7732 GB, free: 4.848 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001016/5.267, allocations: 28 kB / 0.7733 GB, free: 4.82 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/5.267, allocations: 97.38 kB / 0.7734 GB, free: 4.691 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001224/5.267, allocations: 45.81 kB / 0.7734 GB, free: 4.648 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/5.267, allocations: 0 / 0.7734 GB, free: 4.648 MB / 0.6511 GB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003796/5.268, allocations: 149.3 kB / 0.7735 GB, free: 4.496 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.301e-05/5.268, allocations: 4 kB / 0.7735 GB, free: 4.492 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.247e-05/5.268, allocations: 4 kB / 0.7736 GB, free: 4.488 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/5.268, allocations: 7.984 kB / 0.7736 GB, free: 4.48 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002651/5.268, allocations: 32.23 kB / 0.7736 GB, free: 4.449 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.494e-05/5.268, allocations: 8 kB / 0.7736 GB, free: 4.441 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/5.268, allocations: 19.84 kB / 0.7736 GB, free: 4.422 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/5.268, allocations: 15.94 kB / 0.7736 GB, free: 4.406 MB / 0.6511 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$whenCondition2,$PRE.voltageControl.ctrl.connected,voltageControl.ctrl.connected,$PRE.voltageControl.ctrl.tSwitch,voltageControl.ctrl.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * 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 0.0001615/5.268, allocations: 142.5 kB / 0.7738 GB, free: 4.254 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.855e-05/5.269, allocations: 11.91 kB / 0.7738 GB, free: 4.242 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.105e-05/5.269, allocations: 21.39 kB / 0.7738 GB, free: 4.215 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/5.269, allocations: 0 / 0.7738 GB, free: 4.215 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/5.269, allocations: 3.906 kB / 0.7738 GB, free: 4.211 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/5.269, allocations: 0 / 0.7738 GB, free: 4.211 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/5.269, allocations: 182.2 kB / 0.774 GB, free: 3.996 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/5.269, allocations: 0 / 0.774 GB, free: 3.996 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001522/5.269, allocations: 11.98 kB / 0.774 GB, free: 3.984 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/5.269, allocations: 0 / 0.774 GB, free: 3.984 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.162e-05/5.269, allocations: 8 kB / 0.774 GB, free: 3.977 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/5.269, allocations: 0 / 0.774 GB, free: 3.977 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/5.269, allocations: 4 kB / 0.774 GB, free: 3.973 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003884/5.27, allocations: 140.9 kB / 0.7741 GB, free: 3.816 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006082/5.27, allocations: 0.5404 MB / 0.7747 GB, free: 3.254 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001409/5.27, allocations: 88.95 kB / 0.7747 GB, free: 3.148 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.666e-05/5.27, allocations: 4.125 kB / 0.7747 GB, free: 3.145 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001853/5.271, allocations: 15.98 kB / 0.7748 GB, free: 3.129 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.66e-05/5.271, allocations: 11.98 kB / 0.7748 GB, free: 3.117 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-05/5.271, allocations: 0 / 0.7748 GB, free: 3.117 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.0001768/5.271, allocations: 136.2 kB / 0.7749 GB, free: 2.984 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.001175/5.272, allocations: 24 kB / 0.7749 GB, free: 2.961 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (voltageControl.y) * Number of discrete variables: 4 ($whenCondition1,$whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch) * Number of discrete states: 4 ($whenCondition2,voltageControl.ctrl.connected,voltageControl.ctrl.tSwitch,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * 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.000195/5.272, allocations: 115.1 kB / 0.775 GB, free: 2.84 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0003426/5.273, allocations: 135.3 kB / 0.7752 GB, free: 2.695 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/5.273, allocations: 0 / 0.7752 GB, free: 2.695 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.000148/5.273, allocations: 73.62 kB / 0.7752 GB, free: 2.617 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002877/5.273, allocations: 12 kB / 0.7752 GB, free: 2.605 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007143/5.274, allocations: 180.3 kB / 0.7754 GB, free: 2.406 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004383/5.274, allocations: 0.7364 MB / 0.7761 GB, free: 1.645 MB / 0.6511 GB Notification: Performance of SimCode: time 1.072e-06/5.274, allocations: 0 / 0.7761 GB, free: 1.645 MB / 0.6511 GB