Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",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.197/1.197, allocations: 249.4 MB / 256.7 MB, free: 15.73 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.001076/0.001076, allocations: 192.3 kB / 316 MB, free: 7.121 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.271/1.271, allocations: 205.1 MB / 0.5667 GB, free: 23.6 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.0008006/0.0008007, allocations: 99.14 kB / 0.671 GB, free: 0.8789 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.201/0.2018, allocations: 112.5 MB / 0.7808 GB, free: 308 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4274/0.6292, allocations: 106.3 MB / 0.8846 GB, free: 76.26 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5472/1.176, allocations: 182.7 MB / 1.063 GB, free: 52.78 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/1.177, allocations: 91 kB / 1.063 GB, free: 52.78 MB / 0.6823 GB [/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/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.3469/1.524, allocations: 152 MB / 1.211 GB, free: 12.46 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/1.524, allocations: 8 kB / 1.212 GB, free: 12.45 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01819/1.542, allocations: 3.183 MB / 1.215 GB, free: 9.258 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00793/1.55, allocations: 2.582 MB / 1.217 GB, free: 6.66 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004129/1.55, allocations: 389.7 kB / 1.218 GB, free: 6.215 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001128/1.551, allocations: 139.9 kB / 1.218 GB, free: 6.078 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006981/1.558, allocations: 3.582 MB / 1.221 GB, free: 2.488 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00689/1.565, allocations: 3.685 MB / 1.225 GB, free: 14.67 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.304e-05/1.565, allocations: 0 / 1.225 GB, free: 14.67 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000319/1.566, allocations: 15.98 kB / 1.225 GB, free: 14.65 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001354/1.566, allocations: 148.8 kB / 1.225 GB, free: 14.5 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02396/1.59, allocations: 14.53 MB / 1.239 GB, free: 14.91 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001581/1.592, allocations: 1.131 MB / 1.24 GB, free: 13.76 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/1.593, allocations: 1.097 MB / 1.241 GB, free: 12.67 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001229/1.593, allocations: 25.06 kB / 1.241 GB, free: 12.65 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001853/1.595, allocations: 1.387 MB / 1.243 GB, free: 11.2 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=163): time 4.418e-06/1.595, allocations: 0 / 1.243 GB, free: 11.2 MB / 0.7605 GB Notification: Performance of matching and sorting (n=250): time 0.02408/1.619, allocations: 8.684 MB / 1.251 GB, free: 2.543 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0004598/1.62, allocations: 0.8944 MB / 1.252 GB, free: 1.438 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002647/1.622, allocations: 1.564 MB / 1.254 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 0.0004206/1.623, allocations: 41.69 kB / 1.254 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009431/1.624, allocations: 0.9549 MB / 1.254 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009028/1.625, allocations: 0.7851 MB / 1.255 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/1.625, allocations: 0 / 1.255 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002159/1.625, allocations: 398.7 kB / 1.256 GB, free: 13.66 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002133/1.627, allocations: 1.406 MB / 1.257 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002377/1.63, allocations: 1.777 MB / 1.259 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00206/1.632, allocations: 1.477 MB / 1.26 GB, free: 8.84 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.812e-06/1.632, allocations: 3.906 kB / 1.26 GB, free: 8.836 MB / 0.7761 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.0119/1.644, allocations: 5.152 MB / 1.265 GB, free: 3.664 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 2.858e-05/1.644, allocations: 8 kB / 1.265 GB, free: 3.656 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.964e-05/1.644, allocations: 4 kB / 1.265 GB, free: 3.652 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009962/1.654, allocations: 2.765 MB / 1.268 GB, free: 0.8867 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00338/1.657, allocations: 0.6203 MB / 1.269 GB, free: 272 kB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03354/1.691, allocations: 15.48 MB / 1.284 GB, free: 0.5469 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004829/1.695, allocations: 435.4 kB / 1.284 GB, free: 124 kB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006716/1.696, allocations: 87.98 kB / 1.284 GB, free: 36 kB / 0.7917 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 (162): * Single equations (assignments): 155 * 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 {9 63} Notification: Performance of prepare postOptimizeDAE: time 0.001042/1.697, allocations: 155.1 kB / 1.284 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001044/1.698, allocations: 304.4 kB / 1.285 GB, free: 15.58 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000863/1.699, allocations: 317.2 kB / 1.285 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.462e-05/1.699, allocations: 27.91 kB / 1.285 GB, free: 15.23 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.97e-05/1.699, allocations: 15.94 kB / 1.285 GB, free: 15.21 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.11e-05/1.699, allocations: 11.95 kB / 1.285 GB, free: 15.2 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005096/1.704, allocations: 3.326 MB / 1.288 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/1.704, allocations: 0 / 1.288 GB, free: 11.88 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00277/1.707, allocations: 0.5463 MB / 1.289 GB, free: 11.33 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.009927/1.717, allocations: 2.745 MB / 1.291 GB, free: 8.574 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004675/1.718, allocations: 19.88 kB / 1.291 GB, free: 8.555 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0339/1.752, allocations: 15.47 MB / 1.307 GB, free: 8.863 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.384e-06/1.752, allocations: 7.984 kB / 1.307 GB, free: 8.855 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01321/1.765, allocations: 4.968 MB / 1.311 GB, free: 3.887 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01297/1.778, allocations: 5.39 MB / 1.317 GB, free: 14.51 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001992/1.78, allocations: 0.6769 MB / 1.317 GB, free: 13.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001147/1.781, allocations: 11.89 kB / 1.317 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004063/1.785, allocations: 431.5 kB / 1.318 GB, free: 13.38 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008159/1.786, allocations: 261.6 kB / 1.318 GB, free: 13.12 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002858/1.786, allocations: 71.97 kB / 1.318 GB, free: 13.05 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.002276/1.789, allocations: 1.168 MB / 1.319 GB, free: 11.88 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.004741/1.793, allocations: 0.8983 MB / 1.32 GB, free: 10.98 MB / 0.8386 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 (118): * Single equations (assignments): 106 * 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 {8 64} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005767/1.794, allocations: 131.6 kB / 1.32 GB, free: 10.84 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.01742/1.811, allocations: 4.938 MB / 1.325 GB, free: 5.844 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.146e-05/1.811, allocations: 3.781 kB / 1.325 GB, free: 5.84 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.01475/1.826, allocations: 3.174 MB / 1.328 GB, free: 2.645 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005242/1.831, allocations: 0.847 MB / 1.329 GB, free: 1.805 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01471/1.846, allocations: 5.205 MB / 1.334 GB, free: 12.56 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003268/1.849, allocations: 2.397 MB / 1.336 GB, free: 10.13 MB / 0.8542 GB Notification: Performance of SimCode: time 1.092e-06/1.849, allocations: 3.938 kB / 1.336 GB, free: 10.12 MB / 0.8542 GB (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)