Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.304/1.304, allocations: 285.5 MB / 292.8 MB, free: 10.46 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.0008902/0.0008902, allocations: 187.4 kB / 361.1 MB, free: 7.129 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9865/0.9865, allocations: 205.1 MB / 0.6195 GB, free: 10.34 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.0007654/0.0007654, allocations: 93.16 kB / 0.7326 GB, free: 44.29 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1719/0.1727, allocations: 121.4 MB / 0.8511 GB, free: 2.949 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3955/0.5681, allocations: 115.3 MB / 0.9638 GB, free: 77.99 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1652/0.7334, allocations: 188.9 MB / 1.148 GB, free: 15.06 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002152/0.7337, allocations: 84.47 kB / 1.148 GB, free: 14.98 MB / 0.7605 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1-maint.8.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.5915/1.325, allocations: 150 MB / 1.295 GB, free: 190.6 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/1.325, allocations: 19.36 kB / 1.295 GB, free: 190.6 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01513/1.34, allocations: 3.175 MB / 1.298 GB, free: 190.3 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004686/1.345, allocations: 2.319 MB / 1.3 GB, free: 189.6 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.704e-05/1.345, allocations: 81.47 kB / 1.3 GB, free: 189.6 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005934/1.346, allocations: 138 kB / 1.3 GB, free: 189.6 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004933/1.351, allocations: 3.513 MB / 1.304 GB, free: 189.6 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005202/1.356, allocations: 3.565 MB / 1.307 GB, free: 189.3 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.56e-05/1.356, allocations: 4 kB / 1.307 GB, free: 189.3 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003376/1.356, allocations: 7.375 kB / 1.307 GB, free: 189.3 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.401e-05/1.356, allocations: 153.6 kB / 1.307 GB, free: 189.2 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01627/1.373, allocations: 14.03 MB / 1.321 GB, free: 181 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001203/1.374, allocations: 1.063 MB / 1.322 GB, free: 180.6 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001118/1.375, allocations: 1.037 MB / 1.323 GB, free: 180.2 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 9.466e-05/1.375, allocations: 28.08 kB / 1.323 GB, free: 180.2 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001389/1.377, allocations: 1.287 MB / 1.325 GB, free: 179.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 3.907e-06/1.377, allocations: 0 / 1.325 GB, free: 179.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.0167/1.393, allocations: 7.731 MB / 1.332 GB, free: 176.9 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001545/1.393, allocations: 0.8976 MB / 1.333 GB, free: 175.8 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002314/1.396, allocations: 1.568 MB / 1.334 GB, free: 175.1 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0001842/1.396, allocations: 40.39 kB / 1.335 GB, free: 175.1 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005529/1.397, allocations: 0.9546 MB / 1.335 GB, free: 174.5 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005599/1.397, allocations: 0.7853 MB / 1.336 GB, free: 173.8 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001682/1.397, allocations: 1.375 kB / 1.336 GB, free: 173.8 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001073/1.397, allocations: 394.8 kB / 1.337 GB, free: 173.5 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001749/1.399, allocations: 1.246 MB / 1.338 GB, free: 173 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001979/1.401, allocations: 1.626 MB / 1.339 GB, free: 172.1 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001878/1.403, allocations: 1.334 MB / 1.341 GB, free: 171.6 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.825e-06/1.403, allocations: 4.062 kB / 1.341 GB, free: 171.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.008362/1.411, allocations: 4.418 MB / 1.345 GB, free: 170 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003279/1.412, allocations: 2.275 MB / 1.347 GB, free: 167.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.664e-05/1.412, allocations: 8.578 kB / 1.347 GB, free: 167.6 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005361/1.417, allocations: 1.629 MB / 1.349 GB, free: 167.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002895/1.42, allocations: 0.6396 MB / 1.349 GB, free: 167.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/1.431, allocations: 8.718 MB / 1.358 GB, free: 162.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003754/1.435, allocations: 416.7 kB / 1.358 GB, free: 162.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003586/1.435, allocations: 92.17 kB / 1.358 GB, free: 162.5 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 7.013e-06/1.435, allocations: 5.531 kB / 1.358 GB, free: 162.5 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006315/1.441, allocations: 3.68 MB / 1.362 GB, free: 161.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.509e-05/1.441, allocations: 7 kB / 1.362 GB, free: 161.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003636/1.445, allocations: 1.426 MB / 1.363 GB, free: 161 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002928/1.448, allocations: 0.6859 MB / 1.364 GB, free: 160.9 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01487/1.463, allocations: 11.15 MB / 1.375 GB, free: 155.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0035/1.466, allocations: 406.8 kB / 1.375 GB, free: 155.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002652/1.467, allocations: 89.2 kB / 1.375 GB, free: 155.1 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.0005264/1.467, allocations: 160.3 kB / 1.376 GB, free: 154.9 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006608/1.468, allocations: 305.6 kB / 1.376 GB, free: 154.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006982/1.469, allocations: 338 kB / 1.376 GB, free: 154.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.245e-05/1.469, allocations: 24.28 kB / 1.376 GB, free: 154.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.352e-05/1.469, allocations: 8.906 kB / 1.376 GB, free: 154.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.735e-05/1.469, allocations: 10.64 kB / 1.376 GB, free: 154.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003603/1.472, allocations: 2.846 MB / 1.379 GB, free: 152.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.183e-06/1.472, allocations: 1 kB / 1.379 GB, free: 152.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002486/1.475, allocations: 0.5705 MB / 1.38 GB, free: 152.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005007/1.48, allocations: 1.649 MB / 1.381 GB, free: 150.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001871/1.48, allocations: 17.5 kB / 1.381 GB, free: 150.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01565/1.496, allocations: 12.67 MB / 1.394 GB, free: 139.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.496, allocations: 0 / 1.394 GB, free: 139.3 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00693/1.503, allocations: 4.234 MB / 1.398 GB, free: 135.7 MB / 0.8542 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.006985/1.51, allocations: 4.674 MB / 1.402 GB, free: 131.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001176/1.511, allocations: 0.6371 MB / 1.403 GB, free: 131.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006664/1.511, allocations: 8 kB / 1.403 GB, free: 131 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003026/1.514, allocations: 426.2 kB / 1.403 GB, free: 130.7 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004755/1.515, allocations: 238.7 kB / 1.404 GB, free: 130.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001839/1.515, allocations: 66.47 kB / 1.404 GB, free: 130.5 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.001265/1.516, allocations: 1.166 MB / 1.405 GB, free: 129.5 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.004434/1.521, allocations: 1.355 MB / 1.406 GB, free: 128.1 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.0003093/1.521, allocations: 136.1 kB / 1.406 GB, free: 128 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.01099/1.532, allocations: 6.896 MB / 1.413 GB, free: 121.6 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.532, allocations: 4.25 kB / 1.413 GB, free: 121.6 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.00408/1.536, allocations: 2.491 MB / 1.415 GB, free: 119.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002968/1.539, allocations: 0.8313 MB / 1.416 GB, free: 118.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009199/1.548, allocations: 5.193 MB / 1.421 GB, free: 114.1 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00231/1.551, allocations: 2.416 MB / 1.424 GB, free: 112.2 MB / 0.8542 GB Notification: Performance of SimCode: time 2.5e-07/1.551, allocations: 0 / 1.424 GB, free: 112.2 MB / 0.8542 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)