Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance",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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.367/2.367, allocations: 248.6 MB / 255.9 MB, free: 7.137 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00286/0.00286, allocations: 179.7 kB / 315.1 MB, free: 4.242 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.101/2.101, allocations: 205.1 MB / 0.5658 GB, free: 316 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001343/0.001343, allocations: 91.33 kB / 0.67 GB, free: 5.527 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4933/0.4947, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2126/0.7074, allocations: 106.3 MB / 0.8835 GB, free: 13.33 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6937/1.401, allocations: 157.7 MB / 1.038 GB, free: 0.5547 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/1.401, allocations: 89.25 kB / 1.038 GB, free: 0.5078 MB / 0.6511 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.04953/1.451, allocations: 11.41 MB / 1.049 GB, free: 7.113 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/1.451, allocations: 8 kB / 1.049 GB, free: 7.105 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001088/1.452, allocations: 83.64 kB / 1.049 GB, free: 7.023 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006385/1.453, allocations: 239.3 kB / 1.049 GB, free: 6.766 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.931e-05/1.453, allocations: 4 kB / 1.049 GB, free: 6.762 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/1.453, allocations: 19.88 kB / 1.049 GB, free: 6.742 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005234/1.453, allocations: 168.6 kB / 1.049 GB, free: 6.633 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006164/1.454, allocations: 264.9 kB / 1.05 GB, free: 6.41 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/1.454, allocations: 3.938 kB / 1.05 GB, free: 6.406 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.65e-05/1.454, allocations: 0 / 1.05 GB, free: 6.406 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.895e-05/1.454, allocations: 16.36 kB / 1.05 GB, free: 6.391 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/1.457, allocations: 1.414 MB / 1.051 GB, free: 4.93 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003077/1.457, allocations: 91.92 kB / 1.051 GB, free: 4.852 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.009e-05/1.457, allocations: 31.3 kB / 1.051 GB, free: 4.828 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.121e-05/1.457, allocations: 4 kB / 1.051 GB, free: 4.824 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.382e-05/1.457, allocations: 34.55 kB / 1.051 GB, free: 4.781 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 3.036e-06/1.457, allocations: 4 kB / 1.051 GB, free: 4.777 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.0004552/1.458, allocations: 112.5 kB / 1.051 GB, free: 4.676 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/1.458, allocations: 51.41 kB / 1.051 GB, free: 4.613 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002428/1.458, allocations: 162.9 kB / 1.051 GB, free: 4.469 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 2.47e-05/1.458, allocations: 25.7 kB / 1.051 GB, free: 4.438 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001227/1.458, allocations: 169.9 kB / 1.052 GB, free: 4.277 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 2.824e-05/1.458, allocations: 22.84 kB / 1.052 GB, free: 4.258 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.338e-06/1.458, allocations: 0 / 1.052 GB, free: 4.258 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001431/1.458, allocations: 322.5 kB / 1.052 GB, free: 3.938 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.919e-05/1.459, allocations: 34.11 kB / 1.052 GB, free: 3.918 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001505/1.459, allocations: 98.58 kB / 1.052 GB, free: 3.805 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001417/1.459, allocations: 50.22 kB / 1.052 GB, free: 3.77 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/1.459, allocations: 0 / 1.052 GB, free: 3.77 MB / 0.6667 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005212/1.459, allocations: 179.8 kB / 1.052 GB, free: 3.613 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/1.459, allocations: 10.03 kB / 1.052 GB, free: 3.605 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/1.459, allocations: 0 / 1.052 GB, free: 3.605 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002204/1.46, allocations: 28.28 kB / 1.052 GB, free: 3.578 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002147/1.46, allocations: 24.22 kB / 1.052 GB, free: 3.555 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001638/1.462, allocations: 1.259 MB / 1.054 GB, free: 2.223 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002543/1.462, allocations: 19.81 kB / 1.054 GB, free: 2.203 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.688e-05/1.462, allocations: 4 kB / 1.054 GB, free: 2.199 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001235/1.462, allocations: 108.9 kB / 1.054 GB, free: 2.086 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.782e-05/1.462, allocations: 11.81 kB / 1.054 GB, free: 2.074 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.747e-05/1.462, allocations: 20.02 kB / 1.054 GB, free: 2.066 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/1.462, allocations: 0 / 1.054 GB, free: 2.066 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/1.462, allocations: 4 kB / 1.054 GB, free: 2.062 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/1.462, allocations: 4.062 kB / 1.054 GB, free: 2.059 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003647/1.463, allocations: 210.8 kB / 1.054 GB, free: 1.84 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/1.463, allocations: 4 kB / 1.054 GB, free: 1.836 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.464e-05/1.463, allocations: 4 kB / 1.054 GB, free: 1.832 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001619/1.463, allocations: 28.09 kB / 1.054 GB, free: 1.805 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/1.463, allocations: 0 / 1.054 GB, free: 1.805 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001423/1.464, allocations: 1.246 MB / 1.055 GB, free: 488 kB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.04e-06/1.464, allocations: 4.031 kB / 1.055 GB, free: 484 kB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000383/1.465, allocations: 213.6 kB / 1.055 GB, free: 272 kB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005555/1.465, allocations: 0.5725 MB / 1.056 GB, free: 15.69 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/1.466, allocations: 104.2 kB / 1.056 GB, free: 15.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.215e-05/1.466, allocations: 0 / 1.056 GB, free: 15.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002022/1.466, allocations: 11.98 kB / 1.056 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.908e-05/1.466, allocations: 0 / 1.056 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.31e-05/1.466, allocations: 4 kB / 1.056 GB, free: 15.56 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001661/1.466, allocations: 120.1 kB / 1.056 GB, free: 15.46 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.001361/1.467, allocations: 51.75 kB / 1.056 GB, free: 15.41 MB / 0.6823 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 (6): * Single equations (assignments): 5 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001706/1.468, allocations: 95.25 kB / 1.056 GB, free: 15.3 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005675/1.468, allocations: 203.9 kB / 1.056 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/1.468, allocations: 0 / 1.056 GB, free: 15.12 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002857/1.468, allocations: 136 kB / 1.057 GB, free: 14.98 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004114/1.469, allocations: 26.61 kB / 1.057 GB, free: 14.96 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000812/1.47, allocations: 222.2 kB / 1.057 GB, free: 14.75 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005717/1.47, allocations: 0.7703 MB / 1.058 GB, free: 13.96 MB / 0.6823 GB Notification: Performance of SimCode: time 1.693e-06/1.47, allocations: 0 / 1.058 GB, free: 13.96 MB / 0.6823 GB