Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.207/2.207, allocations: 284.8 MB / 292.1 MB, free: 10.74 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001579/0.001579, allocations: 181.2 kB / 360.3 MB, free: 7.52 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.654/1.654, allocations: 205.2 MB / 0.6187 GB, free: 13.18 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001213/0.001212, allocations: 91.61 kB / 0.7317 GB, free: 45.09 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2399/0.2412, allocations: 121.4 MB / 0.8502 GB, free: 3.91 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5553/0.7965, allocations: 115.2 MB / 0.9627 GB, free: 78.62 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2416/1.038, allocations: 163 MB / 1.122 GB, free: 9.789 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003218/1.039, allocations: 92.88 kB / 1.122 GB, free: 9.703 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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 8.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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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.04411/1.083, allocations: 11.4 MB / 1.133 GB, free: 14.23 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/1.083, allocations: 8.5 kB / 1.133 GB, free: 14.23 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001046/1.084, allocations: 83.64 kB / 1.133 GB, free: 14.14 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005183/1.084, allocations: 238.7 kB / 1.133 GB, free: 13.88 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/1.084, allocations: 4 kB / 1.133 GB, free: 13.87 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/1.084, allocations: 13.5 kB / 1.134 GB, free: 13.86 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005338/1.085, allocations: 173.8 kB / 1.134 GB, free: 13.69 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006287/1.086, allocations: 271.8 kB / 1.134 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.391e-05/1.086, allocations: 0 / 1.134 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.725e-05/1.086, allocations: 4 kB / 1.134 GB, free: 13.4 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.908e-05/1.086, allocations: 12.38 kB / 1.134 GB, free: 13.39 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002227/1.088, allocations: 1.414 MB / 1.135 GB, free: 11.82 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003072/1.088, allocations: 98.5 kB / 1.135 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.971e-05/1.088, allocations: 32.89 kB / 1.135 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.857e-06/1.088, allocations: 0 / 1.135 GB, free: 11.68 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/1.089, allocations: 38.56 kB / 1.135 GB, free: 11.64 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.744e-06/1.089, allocations: 0 / 1.135 GB, free: 11.64 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0004751/1.089, allocations: 107 kB / 1.136 GB, free: 11.52 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.383e-05/1.089, allocations: 55.41 kB / 1.136 GB, free: 11.46 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002304/1.089, allocations: 158.1 kB / 1.136 GB, free: 11.3 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/1.089, allocations: 25.7 kB / 1.136 GB, free: 11.27 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001183/1.089, allocations: 163.5 kB / 1.136 GB, free: 11.1 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 3.121e-05/1.09, allocations: 31.64 kB / 1.136 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.448e-06/1.09, allocations: 1.031 kB / 1.136 GB, free: 11.07 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001477/1.09, allocations: 322.8 kB / 1.136 GB, free: 10.75 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001033/1.09, allocations: 35.91 kB / 1.136 GB, free: 10.71 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000157/1.09, allocations: 96.52 kB / 1.136 GB, free: 10.59 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001419/1.09, allocations: 53 kB / 1.136 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/1.09, allocations: 0 / 1.136 GB, free: 10.54 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004814/1.091, allocations: 175.8 kB / 1.137 GB, free: 10.36 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/1.091, allocations: 7.906 kB / 1.137 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/1.091, allocations: 1.25 kB / 1.137 GB, free: 10.35 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002075/1.091, allocations: 29.41 kB / 1.137 GB, free: 10.32 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002058/1.091, allocations: 23.98 kB / 1.137 GB, free: 10.29 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001447/1.093, allocations: 1.25 MB / 1.138 GB, free: 8.93 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002226/1.093, allocations: 23.91 kB / 1.138 GB, free: 8.906 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/1.093, allocations: 4 kB / 1.138 GB, free: 8.902 MB / 0.7448 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.0001154/1.093, allocations: 112.7 kB / 1.138 GB, free: 8.785 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.719e-05/1.093, allocations: 16.45 kB / 1.138 GB, free: 8.77 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.002e-05/1.093, allocations: 17.41 kB / 1.138 GB, free: 8.754 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/1.093, allocations: 4 kB / 1.138 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/1.093, allocations: 1.562 kB / 1.138 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/1.093, allocations: 0 / 1.138 GB, free: 8.75 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00035/1.094, allocations: 210.2 kB / 1.138 GB, free: 8.508 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/1.094, allocations: 3.906 kB / 1.138 GB, free: 8.504 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.126e-05/1.094, allocations: 12.64 kB / 1.138 GB, free: 8.492 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001404/1.094, allocations: 20.84 kB / 1.138 GB, free: 8.469 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.228e-06/1.094, allocations: 0 / 1.138 GB, free: 8.469 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/1.095, allocations: 1.249 MB / 1.14 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/1.095, allocations: 0 / 1.14 GB, free: 7.105 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003545/1.096, allocations: 221.8 kB / 1.14 GB, free: 6.871 MB / 0.7448 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004906/1.096, allocations: 0.5709 MB / 1.14 GB, free: 6.277 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001227/1.096, allocations: 101.9 kB / 1.14 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.14e-05/1.096, allocations: 1.75 kB / 1.14 GB, free: 6.16 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001973/1.096, allocations: 11.91 kB / 1.14 GB, free: 6.148 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.632e-05/1.097, allocations: 3.938 kB / 1.14 GB, free: 6.145 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.344e-05/1.097, allocations: 4 kB / 1.14 GB, free: 6.141 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0001572/1.097, allocations: 124.3 kB / 1.141 GB, free: 6.02 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.001342/1.098, allocations: 55.83 kB / 1.141 GB, free: 5.965 MB / 0.7448 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.0001394/1.098, allocations: 95.19 kB / 1.141 GB, free: 5.863 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0005069/1.099, allocations: 191.7 kB / 1.141 GB, free: 5.668 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/1.099, allocations: 0 / 1.141 GB, free: 5.668 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002348/1.099, allocations: 145.6 kB / 1.141 GB, free: 5.516 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003873/1.099, allocations: 28.86 kB / 1.141 GB, free: 5.492 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007467/1.1, allocations: 216.2 kB / 1.141 GB, free: 5.262 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005056/1.101, allocations: 0.7713 MB / 1.142 GB, free: 4.465 MB / 0.7448 GB Notification: Performance of SimCode: time 1.072e-06/1.101, allocations: 0 / 1.142 GB, free: 4.465 MB / 0.7448 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)