Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.RCModel,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.349/1.349, allocations: 289.8 MB / 297.1 MB, free: 6.656 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.0009604/0.0009604, allocations: 185.2 kB / 366.3 MB, free: 1.977 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.049/1.049, allocations: 205.1 MB / 0.6256 GB, free: 5.785 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.0007812/0.0007812, allocations: 82.48 kB / 0.7395 GB, free: 39.63 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1929/0.1937, allocations: 122.4 MB / 0.8591 GB, free: 13.24 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4307/0.6244, allocations: 116.3 MB / 0.9726 GB, free: 68.14 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1675/0.792, allocations: 171.1 MB / 1.14 GB, free: 9.297 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002071/0.7922, allocations: 101.5 kB / 1.14 GB, free: 9.199 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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 8.1.4-maint.8.1.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.0399/0.8321, allocations: 18.04 MB / 1.157 GB, free: 6.922 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.8322, allocations: 8 kB / 1.157 GB, free: 6.914 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/0.8333, allocations: 159.4 kB / 1.158 GB, free: 6.758 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.8339, allocations: 334.1 kB / 1.158 GB, free: 6.395 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.651e-05/0.8339, allocations: 16 kB / 1.158 GB, free: 6.379 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.503e-05/0.834, allocations: 23.91 kB / 1.158 GB, free: 6.355 MB / 0.7605 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005287/0.8345, allocations: 353.4 kB / 1.158 GB, free: 6.012 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006423/0.8352, allocations: 483.9 kB / 1.159 GB, free: 5.5 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.8352, allocations: 0 / 1.159 GB, free: 5.5 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.487e-05/0.8352, allocations: 0 / 1.159 GB, free: 5.5 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.758e-05/0.8353, allocations: 32.62 kB / 1.159 GB, free: 5.469 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002391/0.8377, allocations: 2.336 MB / 1.161 GB, free: 2.926 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001802/0.8379, allocations: 129.7 kB / 1.161 GB, free: 2.793 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.838, allocations: 105.9 kB / 1.161 GB, free: 2.688 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 1.419e-05/0.8381, allocations: 0 / 1.161 GB, free: 2.688 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.8381, allocations: 42.41 kB / 1.161 GB, free: 2.637 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=20): time 1.082e-06/0.8381, allocations: 0 / 1.161 GB, free: 2.637 MB / 0.7605 GB Notification: Performance of matching and sorting (n=23): time 0.001565/0.8397, allocations: 0.7953 MB / 1.162 GB, free: 1.781 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.8397, allocations: 63.25 kB / 1.162 GB, free: 1.707 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/0.8399, allocations: 229 kB / 1.162 GB, free: 1.473 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.283e-05/0.84, allocations: 25.7 kB / 1.162 GB, free: 1.441 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.8401, allocations: 211.5 kB / 1.163 GB, free: 1.23 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 6.302e-05/0.8402, allocations: 78.77 kB / 1.163 GB, free: 1.152 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.8402, allocations: 0 / 1.163 GB, free: 1.152 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.8403, allocations: 342.8 kB / 1.163 GB, free: 0.8086 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001481/0.8404, allocations: 96.62 kB / 1.163 GB, free: 0.7109 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001991/0.8406, allocations: 179.5 kB / 1.163 GB, free: 0.5 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.8408, allocations: 126.7 kB / 1.163 GB, free: 388 kB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.8408, allocations: 4 kB / 1.163 GB, free: 384 kB / 0.7605 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007259/0.8416, allocations: 397.8 kB / 1.164 GB, free: 15.97 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/0.8416, allocations: 9.25 kB / 1.164 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.8416, allocations: 0 / 1.164 GB, free: 15.96 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003399/0.842, allocations: 94.72 kB / 1.164 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000292/0.8423, allocations: 63.91 kB / 1.164 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002711/0.845, allocations: 3.874 MB / 1.168 GB, free: 11.58 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002068/0.8452, allocations: 8 kB / 1.168 GB, free: 11.57 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.641e-05/0.8452, allocations: 16 kB / 1.168 GB, free: 11.55 MB / 0.7761 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 9.552e-05/0.8453, allocations: 108.9 kB / 1.168 GB, free: 11.44 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.962e-05/0.8454, allocations: 31.62 kB / 1.168 GB, free: 11.41 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.187e-05/0.8455, allocations: 42.14 kB / 1.168 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.8455, allocations: 3.938 kB / 1.168 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.245e-06/0.8455, allocations: 4 kB / 1.168 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.8455, allocations: 0 / 1.168 GB, free: 11.36 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003648/0.8459, allocations: 338 kB / 1.168 GB, free: 10.99 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.8459, allocations: 0 / 1.168 GB, free: 10.99 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000201/0.8461, allocations: 27.98 kB / 1.168 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002982/0.8464, allocations: 98.44 kB / 1.168 GB, free: 10.86 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.8464, allocations: 7.906 kB / 1.168 GB, free: 10.85 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002568/0.849, allocations: 3.858 MB / 1.172 GB, free: 6.648 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.849, allocations: 0 / 1.172 GB, free: 6.648 MB / 0.7761 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007112/0.8497, allocations: 0.5349 MB / 1.173 GB, free: 6.09 MB / 0.7761 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009156/0.8507, allocations: 1.048 MB / 1.174 GB, free: 5.016 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.8508, allocations: 124.8 kB / 1.174 GB, free: 4.875 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.172e-05/0.8509, allocations: 4 kB / 1.174 GB, free: 4.871 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.8511, allocations: 11.98 kB / 1.174 GB, free: 4.859 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.279e-05/0.8511, allocations: 11.98 kB / 1.174 GB, free: 4.848 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.578e-05/0.8511, allocations: 4 kB / 1.174 GB, free: 4.844 MB / 0.7761 GB Notification: Performance of sort global known variables: time 0.000148/0.8513, allocations: 173.2 kB / 1.174 GB, free: 4.68 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.001015/0.8523, allocations: 84 kB / 1.174 GB, free: 4.598 MB / 0.7761 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/0.8524, allocations: 103.2 kB / 1.174 GB, free: 4.488 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0006854/0.8531, allocations: 0.5565 MB / 1.175 GB, free: 3.902 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.8531, allocations: 0 / 1.175 GB, free: 3.902 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0004332/0.8536, allocations: 425.3 kB / 1.175 GB, free: 3.457 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003556/0.8539, allocations: 64.06 kB / 1.175 GB, free: 3.398 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009257/0.8549, allocations: 497 kB / 1.176 GB, free: 2.887 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004376/0.8553, allocations: 0.8712 MB / 1.177 GB, free: 1.984 MB / 0.7761 GB Notification: Performance of SimCode: time 2.61e-07/0.8553, allocations: 0 / 1.177 GB, free: 1.984 MB / 0.7761 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_RCModel.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1)