Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines.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.DCLines,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.155/2.155, allocations: 284.8 MB / 292.1 MB, free: 10.76 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.001641/0.001641, allocations: 177.3 kB / 360.3 MB, free: 7.531 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.65/1.65, allocations: 205.1 MB / 0.6187 GB, free: 13.2 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.001174/0.001173, allocations: 96.84 kB / 0.7317 GB, free: 45.11 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2425/0.2437, allocations: 121.4 MB / 0.8502 GB, free: 3.914 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.561/0.8047, allocations: 115.2 MB / 0.9628 GB, free: 78.57 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2773/1.082, allocations: 188.7 MB / 1.147 GB, free: 28 kB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003489/1.083, allocations: 88.02 kB / 1.147 GB, free: 15.94 MB / 0.7605 GB [/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/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.9667/2.049, allocations: 150 MB / 1.294 GB, free: 190.9 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.257e-05/2.049, allocations: 10.69 kB / 1.294 GB, free: 190.9 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02947/2.079, allocations: 3.186 MB / 1.297 GB, free: 190.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008859/2.088, allocations: 2.32 MB / 1.299 GB, free: 189.9 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001493/2.088, allocations: 80.16 kB / 1.299 GB, free: 189.9 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001218/2.089, allocations: 140.7 kB / 1.299 GB, free: 189.9 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01084/2.1, allocations: 3.512 MB / 1.303 GB, free: 189.9 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.011/2.111, allocations: 3.565 MB / 1.306 GB, free: 189.5 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.168e-05/2.111, allocations: 2.438 kB / 1.306 GB, free: 189.5 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005178/2.112, allocations: 9.75 kB / 1.306 GB, free: 189.5 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001777/2.112, allocations: 154.8 kB / 1.306 GB, free: 189.5 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0349/2.147, allocations: 14.03 MB / 1.32 GB, free: 181.5 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002749/2.15, allocations: 1.067 MB / 1.321 GB, free: 181.1 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002449/2.152, allocations: 1.032 MB / 1.322 GB, free: 180.7 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000149/2.152, allocations: 32.89 kB / 1.322 GB, free: 180.7 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002858/2.155, allocations: 1.285 MB / 1.323 GB, free: 180.1 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 5.731e-06/2.155, allocations: 0 / 1.323 GB, free: 180.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.03412/2.189, allocations: 7.725 MB / 1.331 GB, free: 177.4 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002931/2.19, allocations: 0.9005 MB / 1.332 GB, free: 176.3 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004173/2.194, allocations: 1.56 MB / 1.333 GB, free: 175.6 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0006715/2.195, allocations: 40.23 kB / 1.333 GB, free: 175.6 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.001016/2.196, allocations: 0.9559 MB / 1.334 GB, free: 175 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.001291/2.197, allocations: 0.7881 MB / 1.335 GB, free: 174.3 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003384/2.197, allocations: 1.188 kB / 1.335 GB, free: 174.3 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001806/2.197, allocations: 401.5 kB / 1.335 GB, free: 174 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003743/2.201, allocations: 1.246 MB / 1.337 GB, free: 173.5 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004298/2.206, allocations: 1.62 MB / 1.338 GB, free: 172.6 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003898/2.21, allocations: 1.338 MB / 1.34 GB, free: 172.1 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.999e-05/2.21, allocations: 1.469 kB / 1.34 GB, free: 172.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01754/2.227, allocations: 4.416 MB / 1.344 GB, free: 170.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004773/2.228, allocations: 2.276 MB / 1.346 GB, free: 168.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.872e-05/2.228, allocations: 6.156 kB / 1.346 GB, free: 168.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01121/2.239, allocations: 1.625 MB / 1.348 GB, free: 167.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006315/2.245, allocations: 0.6405 MB / 1.348 GB, free: 167.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02262/2.268, allocations: 8.715 MB / 1.357 GB, free: 163.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007649/2.276, allocations: 411.4 kB / 1.357 GB, free: 163.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006895/2.276, allocations: 92.69 kB / 1.357 GB, free: 163 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/2.276, allocations: 5.781 kB / 1.357 GB, free: 163 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01276/2.289, allocations: 3.684 MB / 1.361 GB, free: 161.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.314e-05/2.289, allocations: 7.094 kB / 1.361 GB, free: 161.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006952/2.296, allocations: 1.435 MB / 1.362 GB, free: 161.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006486/2.303, allocations: 0.6904 MB / 1.363 GB, free: 161.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03084/2.334, allocations: 11.14 MB / 1.374 GB, free: 155.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00721/2.341, allocations: 413.5 kB / 1.374 GB, free: 155.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006452/2.342, allocations: 86.16 kB / 1.374 GB, free: 155.6 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.0009018/2.343, allocations: 168.1 kB / 1.374 GB, free: 155.4 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001035/2.344, allocations: 302.9 kB / 1.375 GB, free: 155.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001161/2.345, allocations: 334 kB / 1.375 GB, free: 155 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-05/2.345, allocations: 23.41 kB / 1.375 GB, free: 155 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.662e-05/2.345, allocations: 9.906 kB / 1.375 GB, free: 155 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-05/2.345, allocations: 14.8 kB / 1.375 GB, free: 155 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006168/2.351, allocations: 2.835 MB / 1.378 GB, free: 153.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.148e-05/2.351, allocations: 6.906 kB / 1.378 GB, free: 153.6 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005553/2.357, allocations: 0.5752 MB / 1.378 GB, free: 153.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01057/2.367, allocations: 1.646 MB / 1.38 GB, free: 151.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005608/2.368, allocations: 18.59 kB / 1.38 GB, free: 151.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03257/2.401, allocations: 12.67 MB / 1.392 GB, free: 140.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.831e-06/2.401, allocations: 0 / 1.392 GB, free: 140.4 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01475/2.415, allocations: 4.228 MB / 1.397 GB, free: 136.7 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01568/2.431, allocations: 4.668 MB / 1.401 GB, free: 132.7 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002578/2.434, allocations: 0.64 MB / 1.402 GB, free: 132.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001091/2.435, allocations: 13.11 kB / 1.402 GB, free: 132.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006689/2.442, allocations: 417.6 kB / 1.402 GB, free: 131.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001009/2.443, allocations: 233.8 kB / 1.402 GB, free: 131.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003452/2.443, allocations: 71.12 kB / 1.402 GB, free: 131.6 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.002514/2.445, allocations: 1.173 MB / 1.404 GB, free: 130.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.007882/2.453, allocations: 1.352 MB / 1.405 GB, free: 129.2 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.0006993/2.454, allocations: 146.5 kB / 1.405 GB, free: 129 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.02299/2.477, allocations: 6.898 MB / 1.412 GB, free: 122.7 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/2.477, allocations: 7.781 kB / 1.412 GB, free: 122.7 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.008576/2.486, allocations: 2.478 MB / 1.414 GB, free: 120.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006516/2.492, allocations: 0.8373 MB / 1.415 GB, free: 119.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01754/2.51, allocations: 5.196 MB / 1.42 GB, free: 115.2 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00419/2.514, allocations: 2.417 MB / 1.422 GB, free: 113.3 MB / 0.8542 GB Notification: Performance of SimCode: time 1.552e-06/2.514, allocations: 0 / 1.422 GB, free: 113.3 MB / 0.8542 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)