Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.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.DCLine,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLine,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLine",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.361/1.361, allocations: 289.8 MB / 297.1 MB, free: 6.684 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.0009775/0.0009775, allocations: 173.3 kB / 366.3 MB, free: 1.996 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.047/1.047, allocations: 205.1 MB / 0.6256 GB, free: 5.812 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.0008326/0.0008326, allocations: 87.11 kB / 0.7396 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1965/0.1974, allocations: 122.4 MB / 0.8591 GB, free: 13.26 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4255/0.6229, allocations: 116.3 MB / 0.9726 GB, free: 68.22 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1695/0.7924, allocations: 180.6 MB / 1.149 GB, free: 15.87 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002227/0.7927, allocations: 91.83 kB / 1.149 GB, free: 15.79 MB / 0.7605 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/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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.08435/0.877, allocations: 37.17 MB / 1.185 GB, free: 10.14 MB / 0.7917 GB Notification: Performance of prepare preOptimizeDAE: time 2.982e-05/0.8771, allocations: 8 kB / 1.185 GB, free: 10.13 MB / 0.7917 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003359/0.8805, allocations: 0.6272 MB / 1.186 GB, free: 9.504 MB / 0.7917 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001045/0.8815, allocations: 0.5895 MB / 1.187 GB, free: 8.867 MB / 0.7917 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.109e-05/0.8815, allocations: 23.88 kB / 1.187 GB, free: 8.844 MB / 0.7917 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.518e-05/0.8816, allocations: 32 kB / 1.187 GB, free: 8.812 MB / 0.7917 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001095/0.8827, allocations: 0.7171 MB / 1.187 GB, free: 8.094 MB / 0.7917 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001187/0.8839, allocations: 0.8123 MB / 1.188 GB, free: 7.238 MB / 0.7917 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.884, allocations: 0 / 1.188 GB, free: 7.238 MB / 0.7917 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.966e-05/0.884, allocations: 0 / 1.188 GB, free: 7.238 MB / 0.7917 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.554e-05/0.8841, allocations: 45.28 kB / 1.188 GB, free: 7.195 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004092/0.8882, allocations: 3.449 MB / 1.192 GB, free: 3.453 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004185/0.8886, allocations: 268 kB / 1.192 GB, free: 3.184 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002388/0.8889, allocations: 176.8 kB / 1.192 GB, free: 3.008 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 3.196e-05/0.8889, allocations: 4 kB / 1.192 GB, free: 3.004 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.437e-05/0.8889, allocations: 34.56 kB / 1.192 GB, free: 2.961 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=31): time 1.363e-06/0.8889, allocations: 4 kB / 1.192 GB, free: 2.957 MB / 0.7917 GB Notification: Performance of matching and sorting (n=43): time 0.002583/0.8915, allocations: 1.143 MB / 1.193 GB, free: 1.789 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.172e-05/0.8916, allocations: 140.5 kB / 1.193 GB, free: 1.621 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000417/0.892, allocations: 390.1 kB / 1.194 GB, free: 1.234 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 3.796e-05/0.8921, allocations: 25.7 kB / 1.194 GB, free: 1.203 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.8922, allocations: 299.7 kB / 1.194 GB, free: 0.9023 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.8923, allocations: 134 kB / 1.194 GB, free: 0.7695 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.637e-05/0.8924, allocations: 0 / 1.194 GB, free: 0.7695 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001436/0.8925, allocations: 370.7 kB / 1.194 GB, free: 408 kB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002894/0.8928, allocations: 184.9 kB / 1.195 GB, free: 224 kB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.8932, allocations: 310.9 kB / 1.195 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003258/0.8935, allocations: 225.5 kB / 1.195 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.8935, allocations: 0 / 1.195 GB, free: 15.64 MB / 0.8073 GB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001506/0.8951, allocations: 0.7406 MB / 1.196 GB, free: 14.88 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004168/0.8955, allocations: 1.221 MB / 1.197 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.015e-06/0.8955, allocations: 4 kB / 1.197 GB, free: 13.56 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009641/0.8965, allocations: 229 kB / 1.197 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006544/0.8971, allocations: 135.8 kB / 1.197 GB, free: 13.18 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004295/0.9014, allocations: 5.71 MB / 1.203 GB, free: 7.051 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005869/0.902, allocations: 55.95 kB / 1.203 GB, free: 6.996 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.597e-05/0.9021, allocations: 20 kB / 1.203 GB, free: 6.977 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 6.021e-06/0.9021, allocations: 4 kB / 1.203 GB, free: 6.973 MB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001314/0.9034, allocations: 1.03 MB / 1.204 GB, free: 5.812 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.9034, allocations: 4 kB / 1.204 GB, free: 5.809 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003412/0.9038, allocations: 141.3 kB / 1.204 GB, free: 5.652 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006672/0.9045, allocations: 151.8 kB / 1.204 GB, free: 5.504 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004769/0.9092, allocations: 7.464 MB / 1.212 GB, free: 13.35 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005356/0.9098, allocations: 56.11 kB / 1.212 GB, free: 13.3 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.026e-05/0.9098, allocations: 16 kB / 1.212 GB, free: 13.28 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 41 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001375/0.91, allocations: 124.8 kB / 1.212 GB, free: 13.15 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.9101, allocations: 59.25 kB / 1.212 GB, free: 13.09 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.9102, allocations: 73.41 kB / 1.212 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.9103, allocations: 4 kB / 1.212 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.9103, allocations: 0 / 1.212 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.449e-06/0.9103, allocations: 0 / 1.212 GB, free: 13.02 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000698/0.911, allocations: 0.568 MB / 1.212 GB, free: 12.41 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.911, allocations: 0 / 1.212 GB, free: 12.41 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005632/0.9116, allocations: 115.8 kB / 1.213 GB, free: 12.3 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008535/0.9124, allocations: 237 kB / 1.213 GB, free: 12.05 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.272e-05/0.9125, allocations: 0 / 1.213 GB, free: 12.05 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005784/0.9183, allocations: 7.918 MB / 1.221 GB, free: 3.441 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.9183, allocations: 0 / 1.221 GB, free: 3.441 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001364/0.9197, allocations: 0.7533 MB / 1.221 GB, free: 2.652 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001462/0.9211, allocations: 1.137 MB / 1.222 GB, free: 1.477 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002902/0.9214, allocations: 176.3 kB / 1.223 GB, free: 1.285 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.9215, allocations: 4 kB / 1.223 GB, free: 1.281 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005416/0.9221, allocations: 47.95 kB / 1.223 GB, free: 1.234 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.387e-05/0.9222, allocations: 27.86 kB / 1.223 GB, free: 1.207 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.263e-05/0.9222, allocations: 8 kB / 1.223 GB, free: 1.199 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0003617/0.9226, allocations: 303 kB / 1.223 GB, free: 0.9062 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.002157/0.9247, allocations: 256 kB / 1.223 GB, free: 0.6562 MB / 0.823 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 (31): * Single equations (assignments): 25 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 3 {1 2,1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001725/0.9249, allocations: 119.2 kB / 1.223 GB, free: 0.5312 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.002299/0.9272, allocations: 1.695 MB / 1.225 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.9272, allocations: 0 / 1.225 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.001089/0.9283, allocations: 0.8618 MB / 1.226 GB, free: 13.82 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008738/0.9292, allocations: 168.7 kB / 1.226 GB, free: 13.66 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.9316, allocations: 0.918 MB / 1.227 GB, free: 12.71 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008039/0.9324, allocations: 1.025 MB / 1.228 GB, free: 11.66 MB / 0.8386 GB Notification: Performance of SimCode: time 3.7e-07/0.9324, allocations: 3.938 kB / 1.228 GB, free: 11.65 MB / 0.8386 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_DCLine.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.DCLine.pipe 2>&1)