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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLines,fileNamePrefix="Buildings_maint_7_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_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.595/1.595, allocations: 249.3 MB / 261.8 MB, free: 5.891 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.001334/0.001335, allocations: 182.7 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.622/1.622, allocations: 205.2 MB / 0.572 GB, free: 10.61 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.0008933/0.0008931, allocations: 86.52 kB / 0.6764 GB, free: 15.59 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.288e-05/3.294e-05, allocations: 4 kB / 0.788 GB, free: 97 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2301/0.2302, allocations: 106.3 MB / 0.8919 GB, free: 6.566 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.839/1.069, allocations: 183.3 MB / 1.071 GB, free: 2.367 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002904/1.07, allocations: 89.44 kB / 1.071 GB, free: 2.32 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 - DAE generated: time 0.3807/1.45, allocations: 147.6 MB / 1.215 GB, free: 2.289 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.797e-06/1.45, allocations: 8 kB / 1.215 GB, free: 2.281 MB / 0.823 GB Notification: Performance of Transformations before backend: time 0.0003765/1.451, allocations: 75.98 kB / 1.215 GB, free: 2.207 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.01096/1.462, allocations: 3.422 MB / 1.219 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/1.462, allocations: 8.031 kB / 1.219 GB, free: 14.68 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001725/1.463, allocations: 350.2 kB / 1.219 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01822/1.482, allocations: 3.202 MB / 1.222 GB, free: 11.11 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008792/1.491, allocations: 2.295 MB / 1.224 GB, free: 8.746 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002757/1.491, allocations: 189.4 kB / 1.224 GB, free: 8.559 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001458/1.492, allocations: 228 kB / 1.225 GB, free: 8.336 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01187/1.504, allocations: 3.827 MB / 1.228 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/1.504, allocations: 0 / 1.228 GB, free: 4.367 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001097/1.505, allocations: 104 kB / 1.228 GB, free: 4.266 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002441/1.506, allocations: 144.8 kB / 1.229 GB, free: 4.121 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008772/1.515, allocations: 3.533 MB / 1.232 GB, free: 0.5742 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03014/1.545, allocations: 14.36 MB / 1.246 GB, free: 1.043 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007942/1.553, allocations: 2.842 MB / 1.249 GB, free: 14.18 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001875/1.555, allocations: 1.038 MB / 1.25 GB, free: 13.14 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001581/1.555, allocations: 29.28 kB / 1.25 GB, free: 13.11 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002567/1.557, allocations: 1.359 MB / 1.251 GB, free: 11.69 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=163): time 7.234e-06/1.557, allocations: 0 / 1.251 GB, free: 11.69 MB / 0.8698 GB Notification: Performance of matching and sorting (n=250): time 0.7191/2.276, allocations: 28.99 MB / 1.28 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002744/2.277, allocations: 0.8954 MB / 1.28 GB, free: 224.5 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003913/2.281, allocations: 1.955 MB / 1.282 GB, free: 224.2 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0006547/2.281, allocations: 82.22 kB / 1.282 GB, free: 224.2 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001384/2.283, allocations: 1.434 MB / 1.284 GB, free: 223.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001016/2.284, allocations: 0.8194 MB / 1.285 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001848/2.284, allocations: 46.53 kB / 1.285 GB, free: 223.5 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001628/2.284, allocations: 401.1 kB / 1.285 GB, free: 223.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002265/2.286, allocations: 1.253 MB / 1.286 GB, free: 223.2 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00256/2.289, allocations: 1.641 MB / 1.288 GB, free: 222.8 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002422/2.291, allocations: 1.489 MB / 1.289 GB, free: 222.6 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.687e-06/2.291, allocations: 1.438 kB / 1.289 GB, free: 222.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01107/2.303, allocations: 4.77 MB / 1.294 GB, free: 222.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006136/2.303, allocations: 2.452 MB / 1.296 GB, free: 219.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/2.303, allocations: 5.188 kB / 1.296 GB, free: 219.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006537/2.31, allocations: 1.766 MB / 1.298 GB, free: 219.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003472/2.313, allocations: 0.5851 MB / 1.299 GB, free: 219.3 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01224/2.326, allocations: 9.047 MB / 1.308 GB, free: 217.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004565/2.33, allocations: 418.9 kB / 1.308 GB, free: 217.3 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004291/2.331, allocations: 89.17 kB / 1.308 GB, free: 217.3 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/2.331, allocations: 5.953 kB / 1.308 GB, free: 217.3 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00789/2.339, allocations: 4.375 MB / 1.312 GB, free: 217 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.176e-05/2.339, allocations: 10.61 kB / 1.312 GB, free: 217 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004254/2.343, allocations: 1.761 MB / 1.314 GB, free: 216.9 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003089/2.346, allocations: 0.6107 MB / 1.315 GB, free: 216.9 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01801/2.364, allocations: 13.26 MB / 1.328 GB, free: 214 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004651/2.369, allocations: 406.1 kB / 1.328 GB, free: 213.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005275/2.369, allocations: 88.86 kB / 1.328 GB, free: 213.9 MB / 0.8698 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.001074/2.37, allocations: 258.7 kB / 1.328 GB, free: 213.7 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/2.372, allocations: 337.5 kB / 1.329 GB, free: 213.5 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001293/2.373, allocations: 397 kB / 1.329 GB, free: 213.2 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.655e-05/2.373, allocations: 25.05 kB / 1.329 GB, free: 213.2 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.161e-05/2.373, allocations: 11.09 kB / 1.329 GB, free: 213.2 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.269e-05/2.373, allocations: 11.39 kB / 1.329 GB, free: 213.2 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004995/2.378, allocations: 3.186 MB / 1.332 GB, free: 212 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/2.378, allocations: 4 kB / 1.332 GB, free: 212 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002556/2.381, allocations: 0.5135 MB / 1.333 GB, free: 212 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005264/2.386, allocations: 1.664 MB / 1.334 GB, free: 211.6 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003015/2.386, allocations: 58.61 kB / 1.334 GB, free: 211.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01807/2.404, allocations: 13.74 MB / 1.348 GB, free: 204.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/2.404, allocations: 1.812 kB / 1.348 GB, free: 204.2 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008923/2.413, allocations: 4.407 MB / 1.352 GB, free: 202.6 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002316/2.416, allocations: 0.6699 MB / 1.353 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000751/2.416, allocations: 49.56 kB / 1.353 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003358/2.42, allocations: 411 kB / 1.353 GB, free: 202.1 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001017/2.421, allocations: 310.1 kB / 1.353 GB, free: 202 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002269/2.421, allocations: 66.53 kB / 1.353 GB, free: 202 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.002387/2.423, allocations: 1.493 MB / 1.355 GB, free: 201.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 3.21e-07/2.423, allocations: 0 / 1.355 GB, free: 201.4 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.004967/2.428, allocations: 1.582 MB / 1.356 GB, free: 201.2 MB / 0.8698 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.008878/2.437, allocations: 5.062 MB / 1.361 GB, free: 199.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01457/2.452, allocations: 7.724 MB / 1.369 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.682e-05/2.452, allocations: 3.938 kB / 1.369 GB, free: 195.6 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.006023/2.458, allocations: 2.785 MB / 1.372 GB, free: 194.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00603/2.464, allocations: 1.013 MB / 1.373 GB, free: 194.1 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01626/2.48, allocations: 5.598 MB / 1.378 GB, free: 192 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003192/2.484, allocations: 2.326 MB / 1.38 GB, free: 191.1 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.004513/2.488, allocations: 0.7618 MB / 1.381 GB, free: 190.9 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001592/2.49, allocations: 1.298 MB / 1.382 GB, free: 189.9 MB / 0.8698 GB Notification: Performance of SimCode: time 1.042e-06/2.49, allocations: 0 / 1.382 GB, free: 189.9 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1584/2.648, allocations: 102.3 MB / 1.482 GB, free: 109.5 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001574/2.648, allocations: 190 kB / 1.483 GB, free: 109.3 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.567/9.215, allocations: 1.219 kB / 1.483 GB, free: 109.3 MB / 0.8698 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines_fmu --startTime=0 --stopTime=4000 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Electrical_DC_Lines_Examples_DCLines.fmu > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.DCLines.pipe 2>&1)