Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.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: translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines") translateModel(Buildings.Electrical.DC.Lines.Examples.DCLines,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Sloads|E.S.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines") [: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.183/1.183, allocations: 249.4 MB / 256.7 MB, free: 7.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009279/0.0009279, allocations: 188.6 kB / 316 MB, free: 3.504 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.023/1.023, allocations: 205.1 MB / 0.5667 GB, free: 15.57 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.0008224/0.0008224, allocations: 82.11 kB / 0.671 GB, free: 4.699 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.839e-06/4.849e-06, allocations: 0 / 0.7807 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.13/0.13, allocations: 106.3 MB / 0.8846 GB, free: 12.61 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4445/0.5745, allocations: 183.6 MB / 1.064 GB, free: 5.949 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/0.5747, allocations: 90.97 kB / 1.064 GB, free: 5.902 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: Performance of FrontEnd: time 0.3257/0.9004, allocations: 146.4 MB / 1.207 GB, free: 11.04 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.000177/0.9006, allocations: 79.94 kB / 1.207 GB, free: 10.96 MB / 0.823 GB 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.006377/0.907, allocations: 3.5 MB / 1.211 GB, free: 7.363 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.134e-05/0.907, allocations: 8.031 kB / 1.211 GB, free: 7.355 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01606/0.9231, allocations: 3.187 MB / 1.214 GB, free: 4.16 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004404/0.9275, allocations: 2.323 MB / 1.216 GB, free: 1.766 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.664e-05/0.9276, allocations: 79.98 kB / 1.216 GB, free: 1.688 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003694/0.928, allocations: 140 kB / 1.216 GB, free: 1.551 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005193/0.9332, allocations: 3.516 MB / 1.22 GB, free: 14.03 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005139/0.9383, allocations: 3.564 MB / 1.223 GB, free: 10.33 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.542e-05/0.9384, allocations: 3.938 kB / 1.223 GB, free: 10.32 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002761/0.9387, allocations: 4 kB / 1.223 GB, free: 10.32 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001188/0.9388, allocations: 152.8 kB / 1.223 GB, free: 10.17 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0185/0.9573, allocations: 14.03 MB / 1.237 GB, free: 10.99 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001352/0.9587, allocations: 1.073 MB / 1.238 GB, free: 9.91 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001257/0.96, allocations: 1.034 MB / 1.239 GB, free: 8.879 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 9.907e-05/0.9601, allocations: 29.28 kB / 1.239 GB, free: 8.848 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001609/0.9617, allocations: 1.285 MB / 1.24 GB, free: 7.496 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 3.387e-06/0.9617, allocations: 0 / 1.24 GB, free: 7.496 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.2574/1.219, allocations: 7.72 MB / 1.248 GB, free: 253.6 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001801/1.219, allocations: 0.9057 MB / 1.249 GB, free: 252.5 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00201/1.221, allocations: 1.561 MB / 1.25 GB, free: 252.3 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0004106/1.222, allocations: 35.14 kB / 1.25 GB, free: 252.3 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006054/1.222, allocations: 0.9599 MB / 1.251 GB, free: 252.2 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005921/1.223, allocations: 0.7881 MB / 1.252 GB, free: 251.9 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001593/1.223, allocations: 0 / 1.252 GB, free: 251.9 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 9.581e-05/1.223, allocations: 394.1 kB / 1.252 GB, free: 251.6 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/1.225, allocations: 1.248 MB / 1.253 GB, free: 251.6 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001665/1.226, allocations: 1.617 MB / 1.255 GB, free: 251.3 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001563/1.228, allocations: 1.339 MB / 1.256 GB, free: 251.2 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/1.228, allocations: 1.594 kB / 1.256 GB, free: 251.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.007722/1.236, allocations: 4.428 MB / 1.261 GB, free: 250.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003097/1.236, allocations: 2.268 MB / 1.263 GB, free: 248.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.352e-05/1.236, allocations: 9.406 kB / 1.263 GB, free: 248.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00526/1.241, allocations: 1.624 MB / 1.265 GB, free: 248.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002943/1.244, allocations: 0.6441 MB / 1.265 GB, free: 248.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/1.255, allocations: 8.715 MB / 1.274 GB, free: 246.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003642/1.259, allocations: 408.8 kB / 1.274 GB, free: 246.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000229/1.259, allocations: 94.56 kB / 1.274 GB, free: 246.6 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 6.502e-06/1.259, allocations: 3.875 kB / 1.274 GB, free: 246.6 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005866/1.265, allocations: 3.686 MB / 1.278 GB, free: 246.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.438e-06/1.265, allocations: 3.938 kB / 1.278 GB, free: 246.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003281/1.268, allocations: 1.426 MB / 1.279 GB, free: 246.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002944/1.271, allocations: 0.6897 MB / 1.28 GB, free: 246.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01391/1.285, allocations: 11.14 MB / 1.291 GB, free: 243.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00342/1.288, allocations: 412.4 kB / 1.291 GB, free: 243.7 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002231/1.289, allocations: 88.8 kB / 1.291 GB, free: 243.7 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.0004828/1.289, allocations: 160.8 kB / 1.291 GB, free: 243.5 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003679/1.289, allocations: 300.9 kB / 1.292 GB, free: 243.4 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005878/1.29, allocations: 335.1 kB / 1.292 GB, free: 243.4 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.344e-05/1.29, allocations: 23.59 kB / 1.292 GB, free: 243.4 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.036e-05/1.29, allocations: 6.844 kB / 1.292 GB, free: 243.4 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.558e-05/1.29, allocations: 16.12 kB / 1.292 GB, free: 243.4 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002802/1.293, allocations: 2.842 MB / 1.295 GB, free: 243.1 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/1.293, allocations: 6.656 kB / 1.295 GB, free: 243.1 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002599/1.296, allocations: 0.5664 MB / 1.295 GB, free: 243.1 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005/1.301, allocations: 1.655 MB / 1.297 GB, free: 243.1 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001799/1.301, allocations: 22.66 kB / 1.297 GB, free: 243.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01572/1.316, allocations: 12.66 MB / 1.309 GB, free: 240.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/1.316, allocations: 0 / 1.309 GB, free: 240.4 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007079/1.324, allocations: 4.226 MB / 1.313 GB, free: 240 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/1.325, allocations: 0.6443 MB / 1.314 GB, free: 239.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000489/1.325, allocations: 20.88 kB / 1.314 GB, free: 239.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002948/1.328, allocations: 417.6 kB / 1.314 GB, free: 239.8 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005035/1.329, allocations: 234.3 kB / 1.315 GB, free: 239.8 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001891/1.329, allocations: 73.48 kB / 1.315 GB, free: 239.8 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.00127/1.33, allocations: 1.159 MB / 1.316 GB, free: 239.7 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.002909/1.333, allocations: 1.363 MB / 1.317 GB, free: 239.6 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.0003259/1.333, allocations: 143 kB / 1.317 GB, free: 239.6 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.01127/1.345, allocations: 6.891 MB / 1.324 GB, free: 237.6 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 5.941e-06/1.345, allocations: 6.281 kB / 1.324 GB, free: 237.6 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.004415/1.349, allocations: 2.481 MB / 1.327 GB, free: 236.7 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003489/1.353, allocations: 0.8394 MB / 1.327 GB, free: 236.5 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009416/1.362, allocations: 5.187 MB / 1.332 GB, free: 234.6 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002119/1.364, allocations: 2.424 MB / 1.335 GB, free: 233.7 MB / 0.8542 GB Notification: Performance of SimCode: time 5.31e-07/1.364, allocations: 0 / 1.335 GB, free: 233.7 MB / 0.8542 GB Notification: Performance of Templates: time 0.1033/1.468, allocations: 85.17 MB / 1.418 GB, free: 187.2 MB / 0.8542 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)