Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.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.RCModel,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_RCModel",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.184/1.184, allocations: 249.4 MB / 256.7 MB, free: 15.79 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009863/0.0009863, allocations: 172.9 kB / 316 MB, free: 7.184 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.286/1.286, allocations: 205.1 MB / 0.5667 GB, free: 23.59 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.0008051/0.000805, allocations: 86.39 kB / 0.671 GB, free: 0.8828 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2013/0.2021, allocations: 112.5 MB / 0.7808 GB, free: 300 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.5736, allocations: 106.3 MB / 0.8846 GB, free: 76.25 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5002/1.074, allocations: 163.8 MB / 1.045 GB, free: 150.6 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/1.074, allocations: 83.05 kB / 1.045 GB, free: 150.6 MB / 0.6823 GB [/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);. [/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);. [/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);. [/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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.04155/1.116, allocations: 18.06 MB / 1.062 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.516e-05/1.116, allocations: 8 kB / 1.062 GB, free: 140.7 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001082/1.117, allocations: 159.3 kB / 1.062 GB, free: 140.5 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004748/1.117, allocations: 342.1 kB / 1.063 GB, free: 140.1 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/1.117, allocations: 12 kB / 1.063 GB, free: 140.1 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.616e-05/1.117, allocations: 16 kB / 1.063 GB, free: 140.1 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004564/1.118, allocations: 345.4 kB / 1.063 GB, free: 139.8 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005288/1.118, allocations: 487.8 kB / 1.064 GB, free: 139.3 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.16e-05/1.118, allocations: 0 / 1.064 GB, free: 139.3 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.916e-05/1.119, allocations: 7.984 kB / 1.064 GB, free: 139.3 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.158e-05/1.119, allocations: 32.64 kB / 1.064 GB, free: 139.2 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/1.12, allocations: 2.336 MB / 1.066 GB, free: 136.7 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/1.12, allocations: 126.4 kB / 1.066 GB, free: 136.6 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001157/1.121, allocations: 108.8 kB / 1.066 GB, free: 136.4 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.361e-05/1.121, allocations: 4.344 kB / 1.066 GB, free: 136.4 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.695e-05/1.121, allocations: 30.56 kB / 1.066 GB, free: 136.4 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 1.653e-06/1.121, allocations: 0 / 1.066 GB, free: 136.4 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23): time 0.001304/1.122, allocations: 0.8024 MB / 1.067 GB, free: 135.5 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.586e-05/1.122, allocations: 59.34 kB / 1.067 GB, free: 135.5 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001664/1.122, allocations: 232.9 kB / 1.067 GB, free: 135.2 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.739e-05/1.122, allocations: 25.7 kB / 1.067 GB, free: 135.2 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 5.531e-05/1.122, allocations: 211.5 kB / 1.067 GB, free: 135 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.038e-05/1.122, allocations: 74.86 kB / 1.068 GB, free: 134.9 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/1.122, allocations: 3.938 kB / 1.068 GB, free: 134.9 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 4.705e-05/1.122, allocations: 338.7 kB / 1.068 GB, free: 134.6 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/1.122, allocations: 96.62 kB / 1.068 GB, free: 134.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001364/1.123, allocations: 183.4 kB / 1.068 GB, free: 134.3 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001451/1.123, allocations: 131.2 kB / 1.068 GB, free: 134.1 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-06/1.123, allocations: 0 / 1.068 GB, free: 134.1 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005469/1.123, allocations: 395.1 kB / 1.069 GB, free: 133.7 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.043e-05/1.123, allocations: 8.062 kB / 1.069 GB, free: 133.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/1.123, allocations: 4 kB / 1.069 GB, free: 133.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002971/1.124, allocations: 94.5 kB / 1.069 GB, free: 133.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000271/1.124, allocations: 59.91 kB / 1.069 GB, free: 133.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001873/1.126, allocations: 3.867 MB / 1.073 GB, free: 129.4 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/1.126, allocations: 12.06 kB / 1.073 GB, free: 129.3 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.035e-05/1.126, allocations: 11.94 kB / 1.073 GB, free: 129.3 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.465e-05/1.126, allocations: 120.8 kB / 1.073 GB, free: 129.2 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.048e-05/1.126, allocations: 23.72 kB / 1.073 GB, free: 129.2 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.234e-05/1.126, allocations: 34.05 kB / 1.073 GB, free: 129.1 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/1.126, allocations: 4 kB / 1.073 GB, free: 129.1 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/1.126, allocations: 4 kB / 1.073 GB, free: 129.1 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.137e-06/1.126, allocations: 3.906 kB / 1.073 GB, free: 129.1 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002971/1.127, allocations: 338 kB / 1.073 GB, free: 128.8 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/1.127, allocations: 0 / 1.073 GB, free: 128.8 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/1.127, allocations: 35.98 kB / 1.073 GB, free: 128.7 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002518/1.127, allocations: 90.5 kB / 1.073 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/1.127, allocations: 4 kB / 1.073 GB, free: 128.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/1.129, allocations: 3.855 MB / 1.077 GB, free: 124.4 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.484e-06/1.129, allocations: 0 / 1.077 GB, free: 124.4 MB / 0.6823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006175/1.13, allocations: 0.5346 MB / 1.078 GB, free: 123.9 MB / 0.6823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0007479/1.13, allocations: 1.051 MB / 1.079 GB, free: 122.8 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/1.13, allocations: 124.8 kB / 1.079 GB, free: 122.7 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.264e-05/1.13, allocations: 8 kB / 1.079 GB, free: 122.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001951/1.131, allocations: 12.05 kB / 1.079 GB, free: 122.6 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.666e-05/1.131, allocations: 11.89 kB / 1.079 GB, free: 122.6 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.428e-05/1.131, allocations: 8 kB / 1.079 GB, free: 122.6 MB / 0.6823 GB Notification: Performance of sort global known variables: time 0.0001172/1.131, allocations: 169.2 kB / 1.079 GB, free: 122.5 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0009878/1.132, allocations: 84 kB / 1.079 GB, free: 122.4 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001341/1.132, allocations: 107.3 kB / 1.079 GB, free: 122.3 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0005944/1.133, allocations: 0.5569 MB / 1.08 GB, free: 121.7 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/1.133, allocations: 0 / 1.08 GB, free: 121.7 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003251/1.133, allocations: 438 kB / 1.08 GB, free: 121.2 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003551/1.133, allocations: 55.98 kB / 1.08 GB, free: 121.2 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008136/1.134, allocations: 0.4923 MB / 1.081 GB, free: 120.7 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002875/1.134, allocations: 0.8605 MB / 1.081 GB, free: 119.8 MB / 0.6823 GB Notification: Performance of SimCode: time 2.51e-07/1.134, allocations: 0 / 1.081 GB, free: 119.8 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)