Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.216/1.216, allocations: 249.4 MB / 256.7 MB, free: 7.066 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.0009606/0.0009606, allocations: 184.4 kB / 316 MB, free: 3.547 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.124/1.124, allocations: 205.2 MB / 0.5667 GB, free: 15.62 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008034/0.0008034, allocations: 87.38 kB / 0.671 GB, free: 4.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3253/0.3261, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1551/0.4813, allocations: 106.3 MB / 0.8847 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4528/0.9341, allocations: 158 MB / 1.039 GB, free: 14.98 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000234/0.9344, allocations: 89.38 kB / 1.039 GB, free: 14.93 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.3-maint.7.0.x/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.3-maint.7.0.x/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.0248/0.9592, allocations: 11.39 MB / 1.05 GB, free: 5.551 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.144e-05/0.9593, allocations: 8 kB / 1.05 GB, free: 5.543 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008673/0.9602, allocations: 83.64 kB / 1.05 GB, free: 5.461 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004952/0.9607, allocations: 244.5 kB / 1.05 GB, free: 5.195 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.9607, allocations: 7.938 kB / 1.05 GB, free: 5.188 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.415e-05/0.9608, allocations: 12 kB / 1.05 GB, free: 5.176 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004193/0.9612, allocations: 170.6 kB / 1.051 GB, free: 5.066 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003967/0.9616, allocations: 263.6 kB / 1.051 GB, free: 4.844 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.9616, allocations: 3.938 kB / 1.051 GB, free: 4.84 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.66e-05/0.9617, allocations: 4 kB / 1.051 GB, free: 4.836 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.074e-05/0.9617, allocations: 16.36 kB / 1.051 GB, free: 4.82 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001332/0.963, allocations: 1.416 MB / 1.052 GB, free: 3.359 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001953/0.9632, allocations: 87.94 kB / 1.052 GB, free: 3.285 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.604e-05/0.9633, allocations: 27.86 kB / 1.052 GB, free: 3.262 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.363e-05/0.9634, allocations: 4 kB / 1.052 GB, free: 3.258 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/0.9634, allocations: 41.59 kB / 1.052 GB, free: 3.211 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=7): time 1.473e-06/0.9634, allocations: 0 / 1.052 GB, free: 3.211 MB / 0.6667 GB Notification: Performance of matching and sorting (n=7): time 0.0002903/0.9637, allocations: 106.7 kB / 1.053 GB, free: 3.113 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.9637, allocations: 55.41 kB / 1.053 GB, free: 3.047 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001714/0.9639, allocations: 159.9 kB / 1.053 GB, free: 2.906 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 1.636e-05/0.9639, allocations: 25.7 kB / 1.053 GB, free: 2.875 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 8.097e-05/0.964, allocations: 165 kB / 1.053 GB, free: 2.719 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.9641, allocations: 27.02 kB / 1.053 GB, free: 2.695 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.851e-06/0.9641, allocations: 0 / 1.053 GB, free: 2.695 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001058/0.9642, allocations: 325.3 kB / 1.053 GB, free: 2.375 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.583e-05/0.9642, allocations: 29.88 kB / 1.053 GB, free: 2.355 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.71e-05/0.9643, allocations: 105.8 kB / 1.053 GB, free: 2.238 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.982e-05/0.9644, allocations: 43.73 kB / 1.053 GB, free: 2.207 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.9644, allocations: 0 / 1.053 GB, free: 2.207 MB / 0.6667 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.000263/0.9647, allocations: 179.4 kB / 1.054 GB, free: 2.051 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.138e-05/0.9647, allocations: 7.938 kB / 1.054 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.9647, allocations: 0 / 1.054 GB, free: 2.043 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001393/0.9649, allocations: 27.91 kB / 1.054 GB, free: 2.016 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.965, allocations: 32.2 kB / 1.054 GB, free: 1.984 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009637/0.966, allocations: 1.259 MB / 1.055 GB, free: 0.6523 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001131/0.9661, allocations: 11.84 kB / 1.055 GB, free: 0.6406 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.091e-05/0.9661, allocations: 4.078 kB / 1.055 GB, free: 0.6367 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 7.5e-05/0.9662, allocations: 108.9 kB / 1.055 GB, free: 0.5234 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.783e-05/0.9662, allocations: 15.8 kB / 1.055 GB, free: 0.5078 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.312e-05/0.9663, allocations: 16.72 kB / 1.055 GB, free: 0.5039 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.9663, allocations: 7.984 kB / 1.055 GB, free: 0.4961 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.965e-06/0.9663, allocations: 96 / 1.055 GB, free: 0.4961 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.9663, allocations: 4 kB / 1.055 GB, free: 0.4922 MB / 0.6667 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002483/0.9665, allocations: 214.6 kB / 1.055 GB, free: 276 kB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.9665, allocations: 0 / 1.055 GB, free: 276 kB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.283e-05/0.9666, allocations: 12 kB / 1.055 GB, free: 264 kB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.234e-05/0.9667, allocations: 23.53 kB / 1.055 GB, free: 240 kB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.889e-06/0.9667, allocations: 0 / 1.055 GB, free: 240 kB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008524/0.9676, allocations: 1.254 MB / 1.057 GB, free: 14.9 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.9676, allocations: 0 / 1.057 GB, free: 14.9 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002099/0.9678, allocations: 203.1 kB / 1.057 GB, free: 14.7 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002924/0.9681, allocations: 0.5791 MB / 1.057 GB, free: 14.12 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.816e-05/0.9682, allocations: 104.4 kB / 1.057 GB, free: 14 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.9682, allocations: 0 / 1.057 GB, free: 14 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001502/0.9684, allocations: 8 kB / 1.057 GB, free: 14 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.871e-05/0.9684, allocations: 3.984 kB / 1.057 GB, free: 13.99 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.74e-06/0.9684, allocations: 4.094 kB / 1.057 GB, free: 13.99 MB / 0.6823 GB Notification: Performance of sort global known variables: time 8.56e-05/0.9685, allocations: 126.2 kB / 1.058 GB, free: 13.88 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0008542/0.9694, allocations: 55.75 kB / 1.058 GB, free: 13.83 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 9.778e-05/0.9695, allocations: 91.25 kB / 1.058 GB, free: 13.73 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000355/0.9699, allocations: 205.1 kB / 1.058 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.9699, allocations: 0 / 1.058 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.9701, allocations: 128.8 kB / 1.058 GB, free: 13.42 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002498/0.9703, allocations: 22.08 kB / 1.058 GB, free: 13.4 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004361/0.9708, allocations: 228.2 kB / 1.058 GB, free: 13.18 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000385/0.9712, allocations: 0.7666 MB / 1.059 GB, free: 12.39 MB / 0.6823 GB Notification: Performance of SimCode: time 4.3e-07/0.9712, allocations: 4 kB / 1.059 GB, free: 12.39 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)