Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines",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.247/1.247, allocations: 249.4 MB / 256.7 MB, free: 7.09 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.0009702/0.0009702, allocations: 192.2 kB / 316 MB, free: 3.605 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.128/1.128, allocations: 205.2 MB / 0.5667 GB, free: 15.61 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.0008857/0.0008857, allocations: 92.88 kB / 0.671 GB, free: 4.742 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3576/0.3585, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1751/0.5336, allocations: 106.3 MB / 0.8847 GB, free: 12.55 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5381/1.072, allocations: 183.7 MB / 1.064 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002658/1.072, allocations: 85.58 kB / 1.064 GB, free: 5.875 MB / 0.6823 GB [/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/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.355/1.427, allocations: 150 MB / 1.211 GB, free: 7.348 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/1.427, allocations: 12 kB / 1.211 GB, free: 7.336 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01796/1.445, allocations: 3.187 MB / 1.214 GB, free: 4.141 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006639/1.452, allocations: 2.319 MB / 1.216 GB, free: 1.75 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/1.452, allocations: 80 kB / 1.216 GB, free: 1.672 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007852/1.453, allocations: 144 kB / 1.216 GB, free: 1.531 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00726/1.46, allocations: 3.512 MB / 1.22 GB, free: 14.01 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006245/1.466, allocations: 3.564 MB / 1.223 GB, free: 10.31 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.517e-05/1.466, allocations: 0 / 1.223 GB, free: 10.31 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000285/1.467, allocations: 11.98 kB / 1.223 GB, free: 10.3 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000158/1.467, allocations: 148.8 kB / 1.223 GB, free: 10.15 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02197/1.489, allocations: 14.03 MB / 1.237 GB, free: 10.97 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001552/1.49, allocations: 1.074 MB / 1.238 GB, free: 9.891 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001391/1.492, allocations: 1.034 MB / 1.239 GB, free: 8.859 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001189/1.492, allocations: 25.28 kB / 1.239 GB, free: 8.832 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001793/1.494, allocations: 1.281 MB / 1.24 GB, free: 7.484 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 4.779e-06/1.494, allocations: 0 / 1.24 GB, free: 7.484 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.2824/1.776, allocations: 7.726 MB / 1.248 GB, free: 315.8 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002065/1.776, allocations: 0.899 MB / 1.249 GB, free: 314.7 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002151/1.779, allocations: 1.562 MB / 1.25 GB, free: 314.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.000452/1.779, allocations: 33.05 kB / 1.25 GB, free: 314.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006997/1.78, allocations: 0.9574 MB / 1.251 GB, free: 314.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007066/1.78, allocations: 0.7978 MB / 1.252 GB, free: 314.1 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/1.781, allocations: 0 / 1.252 GB, free: 314.1 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.891e-05/1.781, allocations: 394.8 kB / 1.252 GB, free: 313.8 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001545/1.782, allocations: 1.248 MB / 1.254 GB, free: 313.8 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001707/1.784, allocations: 1.623 MB / 1.255 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001574/1.786, allocations: 1.33 MB / 1.256 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/1.786, allocations: 3.969 kB / 1.256 GB, free: 313.4 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008001/1.794, allocations: 4.425 MB / 1.261 GB, free: 313.1 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005133/1.794, allocations: 2.272 MB / 1.263 GB, free: 310.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/1.794, allocations: 6.969 kB / 1.263 GB, free: 310.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005714/1.8, allocations: 1.629 MB / 1.265 GB, free: 310.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003247/1.803, allocations: 0.6398 MB / 1.265 GB, free: 310.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01106/1.814, allocations: 8.71 MB / 1.274 GB, free: 308.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00416/1.818, allocations: 420 kB / 1.274 GB, free: 308.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004612/1.819, allocations: 88.28 kB / 1.274 GB, free: 308.7 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/1.819, allocations: 3.625 kB / 1.274 GB, free: 308.7 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006263/1.825, allocations: 3.687 MB / 1.278 GB, free: 308.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.43e-05/1.825, allocations: 3.938 kB / 1.278 GB, free: 308.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003516/1.829, allocations: 1.432 MB / 1.279 GB, free: 308.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003335/1.832, allocations: 0.6805 MB / 1.28 GB, free: 308.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01534/1.848, allocations: 11.15 MB / 1.291 GB, free: 305.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004019/1.852, allocations: 414.3 kB / 1.291 GB, free: 305.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003615/1.852, allocations: 83.69 kB / 1.291 GB, free: 305.8 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.varLoad1.T_start,varLoad1.T_start,$PRE.varLoad1.count,varLoad1.count,$PRE.varLoad2.T_start,varLoad2.T_start,$PRE.varLoad2.count,varLoad2.count,$PRE.varLoad3.T_start,varLoad3.T_start,$PRE.varLoad3.count,varLoad3.count,$PRE.varLoad4.T_start,varLoad4.T_start,$PRE.varLoad4.count,varLoad4.count,$PRE.varLoad5.T_start,varLoad5.T_start,$PRE.varLoad5.count,varLoad5.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (172): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,48.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of prepare postOptimizeDAE: time 0.0006062/1.853, allocations: 162.3 kB / 1.291 GB, free: 305.7 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000528/1.853, allocations: 304.6 kB / 1.292 GB, free: 305.6 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006476/1.854, allocations: 330.9 kB / 1.292 GB, free: 305.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.766e-05/1.854, allocations: 24.81 kB / 1.292 GB, free: 305.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.582e-05/1.854, allocations: 9.469 kB / 1.292 GB, free: 305.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.755e-05/1.854, allocations: 16.31 kB / 1.292 GB, free: 305.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003427/1.857, allocations: 2.845 MB / 1.295 GB, free: 305.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.683e-06/1.857, allocations: 0 / 1.295 GB, free: 305.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002716/1.86, allocations: 0.5711 MB / 1.295 GB, free: 305.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005496/1.866, allocations: 1.653 MB / 1.297 GB, free: 305.3 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003597/1.866, allocations: 17.73 kB / 1.297 GB, free: 305.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01638/1.882, allocations: 12.66 MB / 1.309 GB, free: 302.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/1.882, allocations: 3.906 kB / 1.309 GB, free: 302.5 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007718/1.89, allocations: 4.226 MB / 1.314 GB, free: 301.2 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007925/1.898, allocations: 4.671 MB / 1.318 GB, free: 299.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001704/1.9, allocations: 0.6462 MB / 1.319 GB, free: 298.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006569/1.9, allocations: 6.281 kB / 1.319 GB, free: 298.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00321/1.904, allocations: 422.2 kB / 1.319 GB, free: 298.9 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005152/1.904, allocations: 236 kB / 1.319 GB, free: 298.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000184/1.904, allocations: 73.81 kB / 1.319 GB, free: 298.8 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.001433/1.906, allocations: 1.162 MB / 1.321 GB, free: 298.3 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.004422/1.91, allocations: 1.358 MB / 1.322 GB, free: 298.3 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (128): * Single equations (assignments): 116 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 52} * Non-linear torn systems: 1 {10 52} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003533/1.911, allocations: 144.9 kB / 1.322 GB, free: 298.2 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.01168/1.922, allocations: 6.893 MB / 1.329 GB, free: 295.6 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/1.922, allocations: 9.969 kB / 1.329 GB, free: 295.6 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.00444/1.927, allocations: 2.48 MB / 1.331 GB, free: 294.7 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003822/1.931, allocations: 0.8271 MB / 1.332 GB, free: 294.5 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01152/1.942, allocations: 5.196 MB / 1.337 GB, free: 292.7 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003344/1.946, allocations: 2.419 MB / 1.339 GB, free: 291.8 MB / 0.8542 GB Notification: Performance of SimCode: time 9.52e-07/1.946, allocations: 0 / 1.339 GB, free: 291.8 MB / 0.8542 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)