Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.DCLinesLinearized,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_8_0_0_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 8.0.0/package.mo): time 2.12/2.12, allocations: 284.8 MB / 292.1 MB, free: 1.188 MB / 226.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001563/0.001563, allocations: 192.6 kB / 360.3 MB, free: 15.49 MB / 290.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.638/1.638, allocations: 205.1 MB / 0.6187 GB, free: 6.457 MB / 466.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001245/0.001244, allocations: 92.48 kB / 0.7317 GB, free: 47 MB / 0.5184 GB Notification: Performance of FrontEnd - loaded program: time 0.2449/0.2462, allocations: 121.4 MB / 0.8502 GB, free: 13.39 MB / 0.5965 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5569/0.8031, allocations: 115.2 MB / 0.9627 GB, free: 86.23 MB / 0.6746 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2786/1.082, allocations: 188.8 MB / 1.147 GB, free: 9.277 MB / 0.7527 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003256/1.082, allocations: 84.7 kB / 1.147 GB, free: 9.195 MB / 0.7527 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.9877/2.07, allocations: 151.9 MB / 1.296 GB, free: 166.4 MB / 0.8621 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/2.07, allocations: 8.344 kB / 1.296 GB, free: 166.4 MB / 0.8621 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02998/2.1, allocations: 3.196 MB / 1.299 GB, free: 166.1 MB / 0.8621 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01081/2.111, allocations: 2.576 MB / 1.301 GB, free: 165.5 MB / 0.8621 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004505/2.111, allocations: 391.4 kB / 1.302 GB, free: 165.2 MB / 0.8621 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001364/2.113, allocations: 133.3 kB / 1.302 GB, free: 165.2 MB / 0.8621 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0109/2.124, allocations: 3.583 MB / 1.305 GB, free: 165.1 MB / 0.8621 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009845/2.134, allocations: 3.692 MB / 1.309 GB, free: 164.8 MB / 0.8621 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.778e-05/2.134, allocations: 7.406 kB / 1.309 GB, free: 164.8 MB / 0.8621 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005289/2.134, allocations: 7.875 kB / 1.309 GB, free: 164.8 MB / 0.8621 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/2.134, allocations: 154 kB / 1.309 GB, free: 164.8 MB / 0.8621 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03418/2.169, allocations: 14.53 MB / 1.323 GB, free: 157.4 MB / 0.8621 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002616/2.171, allocations: 1.129 MB / 1.324 GB, free: 157.4 MB / 0.8621 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002424/2.174, allocations: 1.105 MB / 1.325 GB, free: 157.4 MB / 0.8621 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001592/2.174, allocations: 30.25 kB / 1.325 GB, free: 157.4 MB / 0.8621 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003058/2.177, allocations: 1.367 MB / 1.327 GB, free: 157.2 MB / 0.8621 GB Notification: Performance of pre-optimization done (n=163): time 5.36e-06/2.177, allocations: 0 / 1.327 GB, free: 157.2 MB / 0.8621 GB Notification: Performance of matching and sorting (n=250): time 0.04153/2.218, allocations: 8.684 MB / 1.335 GB, free: 156.1 MB / 0.8621 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002722/2.219, allocations: 0.8997 MB / 1.336 GB, free: 155.1 MB / 0.8621 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00347/2.222, allocations: 1.571 MB / 1.338 GB, free: 154.8 MB / 0.8621 GB Notification: Performance of collectPreVariables (initialization): time 0.0007158/2.223, allocations: 32.36 kB / 1.338 GB, free: 154.8 MB / 0.8621 GB Notification: Performance of collectInitialEqns (initialization): time 0.001199/2.224, allocations: 0.9623 MB / 1.339 GB, free: 154.3 MB / 0.8621 GB Notification: Performance of collectInitialBindings (initialization): time 0.001439/2.226, allocations: 0.7824 MB / 1.339 GB, free: 153.8 MB / 0.8621 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003706/2.226, allocations: 1 kB / 1.339 GB, free: 153.8 MB / 0.8621 GB Notification: Performance of setup shared object (initialization): time 0.000185/2.226, allocations: 396.6 kB / 1.34 GB, free: 153.5 MB / 0.8621 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004228/2.231, allocations: 1.408 MB / 1.341 GB, free: 153.5 MB / 0.8621 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004279/2.235, allocations: 1.776 MB / 1.343 GB, free: 153.1 MB / 0.8621 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003714/2.239, allocations: 1.48 MB / 1.344 GB, free: 153.1 MB / 0.8621 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/2.239, allocations: 0 / 1.344 GB, free: 153.1 MB / 0.8621 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02066/2.259, allocations: 5.158 MB / 1.349 GB, free: 152.7 MB / 0.8621 GB Notification: Performance of prepare postOptimizeDAE: time 1.991e-05/2.259, allocations: 5.906 kB / 1.349 GB, free: 152.7 MB / 0.8621 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/2.259, allocations: 6.125 kB / 1.349 GB, free: 152.7 MB / 0.8621 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01785/2.277, allocations: 2.762 MB / 1.352 GB, free: 152.5 MB / 0.8621 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006293/2.284, allocations: 0.6209 MB / 1.353 GB, free: 152.5 MB / 0.8621 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06084/2.345, allocations: 15.47 MB / 1.368 GB, free: 149.6 MB / 0.8621 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008288/2.353, allocations: 436.7 kB / 1.368 GB, free: 149.6 MB / 0.8621 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008483/2.354, allocations: 88.83 kB / 1.368 GB, free: 149.6 MB / 0.8621 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.0009117/2.355, allocations: 149.9 kB / 1.368 GB, free: 149.5 MB / 0.8621 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001075/2.356, allocations: 303.2 kB / 1.369 GB, free: 149.3 MB / 0.8621 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/2.357, allocations: 321.3 kB / 1.369 GB, free: 149.3 MB / 0.8621 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.379e-05/2.357, allocations: 24.12 kB / 1.369 GB, free: 149.3 MB / 0.8621 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.305e-05/2.357, allocations: 17.53 kB / 1.369 GB, free: 149.3 MB / 0.8621 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.466e-05/2.357, allocations: 10.36 kB / 1.369 GB, free: 149.3 MB / 0.8621 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007449/2.364, allocations: 3.329 MB / 1.372 GB, free: 148.6 MB / 0.8621 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.238e-05/2.364, allocations: 0 / 1.372 GB, free: 148.6 MB / 0.8621 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005491/2.37, allocations: 0.5562 MB / 1.373 GB, free: 148.2 MB / 0.8621 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01723/2.387, allocations: 2.74 MB / 1.375 GB, free: 146.6 MB / 0.8621 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006206/2.388, allocations: 20.61 kB / 1.376 GB, free: 146.5 MB / 0.8621 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0604/2.448, allocations: 15.47 MB / 1.391 GB, free: 137.1 MB / 0.8621 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.174e-06/2.448, allocations: 4.594 kB / 1.391 GB, free: 137.1 MB / 0.8621 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02044/2.469, allocations: 4.966 MB / 1.395 GB, free: 132.9 MB / 0.8621 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02067/2.49, allocations: 5.401 MB / 1.401 GB, free: 128.3 MB / 0.8621 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002646/2.492, allocations: 0.6737 MB / 1.401 GB, free: 127.7 MB / 0.8621 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009018/2.493, allocations: 10.86 kB / 1.401 GB, free: 127.7 MB / 0.8621 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006792/2.5, allocations: 434.6 kB / 1.402 GB, free: 127.4 MB / 0.8621 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001227/2.501, allocations: 265.3 kB / 1.402 GB, free: 127.2 MB / 0.8621 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004128/2.502, allocations: 71.45 kB / 1.402 GB, free: 127.2 MB / 0.8621 GB Notification: Performance of sort global known variables: time 0.002659/2.504, allocations: 1.165 MB / 1.403 GB, free: 126.1 MB / 0.8621 GB Notification: Performance of remove unused functions: time 0.005824/2.51, allocations: 0.8918 MB / 1.404 GB, free: 125.2 MB / 0.8621 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.0009146/2.511, allocations: 138.6 kB / 1.404 GB, free: 125.1 MB / 0.8621 GB Notification: Performance of simCode: created initialization part: time 0.0335/2.545, allocations: 4.924 MB / 1.409 GB, free: 120.6 MB / 0.8621 GB Notification: Performance of simCode: created event and clocks part: time 8.907e-06/2.545, allocations: 6.812 kB / 1.409 GB, free: 120.6 MB / 0.8621 GB Notification: Performance of simCode: created simulation system equations: time 0.02871/2.573, allocations: 3.185 MB / 1.412 GB, free: 117.6 MB / 0.8621 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007287/2.581, allocations: 0.8266 MB / 1.413 GB, free: 116.8 MB / 0.8621 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01954/2.6, allocations: 5.205 MB / 1.418 GB, free: 111.5 MB / 0.8621 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004193/2.605, allocations: 2.397 MB / 1.42 GB, free: 109.1 MB / 0.8621 GB Notification: Performance of SimCode: time 1.623e-06/2.605, allocations: 0 / 1.42 GB, free: 109.1 MB / 0.8621 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1)