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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.561/2.561, allocations: 284.9 MB / 292.4 MB, free: 10.54 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.001451/0.001451, allocations: 176.9 kB / 360.6 MB, free: 7.27 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.3 MB / 0.6191 GB, free: 12.15 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.001071/0.00107, allocations: 89.19 kB / 0.7321 GB, free: 44.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.121e-05/2.127e-05, allocations: 0 / 0.8509 GB, free: 3.301 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8331/0.8332, allocations: 115.2 MB / 0.9634 GB, free: 78.55 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.3149/1.148, allocations: 188.9 MB / 1.148 GB, free: 15.46 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003535/1.149, allocations: 94.2 kB / 1.148 GB, free: 15.38 MB / 0.7605 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: Performance of FrontEnd - DAE generated: time 1.265/2.413, allocations: 148.1 MB / 1.293 GB, free: 192.3 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.715e-06/2.413, allocations: 0 / 1.293 GB, free: 192.3 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 0.0004643/2.414, allocations: 76.31 kB / 1.293 GB, free: 192.3 MB / 0.8542 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.01627/2.43, allocations: 3.699 MB / 1.296 GB, free: 190.7 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/2.43, allocations: 9.625 kB / 1.296 GB, free: 190.7 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02834/2.459, allocations: 3.209 MB / 1.299 GB, free: 190.4 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01208/2.471, allocations: 2.557 MB / 1.302 GB, free: 189.8 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005096/2.471, allocations: 389.8 kB / 1.302 GB, free: 189.5 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001503/2.473, allocations: 143.2 kB / 1.302 GB, free: 189.5 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01182/2.485, allocations: 3.453 MB / 1.306 GB, free: 189.5 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01327/2.498, allocations: 3.588 MB / 1.309 GB, free: 189.1 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-05/2.498, allocations: 4.75 kB / 1.309 GB, free: 189.1 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005354/2.499, allocations: 8.562 kB / 1.309 GB, free: 189.1 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002674/2.499, allocations: 145.2 kB / 1.309 GB, free: 189.1 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0357/2.535, allocations: 14.34 MB / 1.323 GB, free: 180.2 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009164/2.544, allocations: 2.623 MB / 1.326 GB, free: 179.2 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002511/2.546, allocations: 1.065 MB / 1.327 GB, free: 178.8 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001974/2.547, allocations: 23.56 kB / 1.327 GB, free: 178.8 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002758/2.549, allocations: 1.374 MB / 1.328 GB, free: 178.2 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=163): time 6.402e-06/2.549, allocations: 0 / 1.328 GB, free: 178.2 MB / 0.8542 GB Notification: Performance of matching and sorting (n=250): time 0.04428/2.594, allocations: 8.489 MB / 1.337 GB, free: 175.2 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002822/2.594, allocations: 0.9024 MB / 1.338 GB, free: 174.2 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/2.597, allocations: 1.561 MB / 1.339 GB, free: 173.5 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.0007343/2.598, allocations: 39.98 kB / 1.339 GB, free: 173.5 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.001445/2.6, allocations: 1.445 MB / 1.341 GB, free: 172.4 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.001178/2.601, allocations: 0.7824 MB / 1.341 GB, free: 171.8 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003424/2.601, allocations: 0 / 1.341 GB, free: 171.8 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001516/2.601, allocations: 399 kB / 1.342 GB, free: 171.4 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00316/2.604, allocations: 1.364 MB / 1.343 GB, free: 170.9 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003568/2.608, allocations: 1.729 MB / 1.345 GB, free: 169.9 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003302/2.611, allocations: 1.429 MB / 1.346 GB, free: 169.3 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.584e-05/2.611, allocations: 0 / 1.346 GB, free: 169.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01881/2.63, allocations: 5.082 MB / 1.351 GB, free: 167.4 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001036/2.63, allocations: 144.8 kB / 1.351 GB, free: 167.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.149e-05/2.63, allocations: 10.19 kB / 1.351 GB, free: 167.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0159/2.646, allocations: 2.799 MB / 1.354 GB, free: 166.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005446/2.652, allocations: 0.5674 MB / 1.355 GB, free: 166.6 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05437/2.706, allocations: 16.4 MB / 1.371 GB, free: 158.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007383/2.714, allocations: 386.2 kB / 1.371 GB, free: 158.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004587/2.714, allocations: 86.44 kB / 1.371 GB, free: 158.3 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 (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.0008037/2.715, allocations: 151.9 kB / 1.371 GB, free: 158.2 MB / 0.8542 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01772/2.733, allocations: 4.762 MB / 1.376 GB, free: 156.5 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001485/2.734, allocations: 306.8 kB / 1.376 GB, free: 156.3 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/2.735, allocations: 336.5 kB / 1.376 GB, free: 156.1 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.39e-05/2.735, allocations: 22.88 kB / 1.376 GB, free: 156.1 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-05/2.735, allocations: 11.88 kB / 1.376 GB, free: 156.1 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.607e-05/2.735, allocations: 13.97 kB / 1.376 GB, free: 156.1 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006805/2.742, allocations: 3.268 MB / 1.38 GB, free: 154.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.309e-05/2.742, allocations: 4.594 kB / 1.38 GB, free: 154.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004862/2.747, allocations: 0.5061 MB / 1.38 GB, free: 154.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01584/2.763, allocations: 2.763 MB / 1.383 GB, free: 153.1 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006282/2.764, allocations: 21.8 kB / 1.383 GB, free: 153.1 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0546/2.818, allocations: 16.36 MB / 1.399 GB, free: 138.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.891e-06/2.818, allocations: 0 / 1.399 GB, free: 138.7 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01783/2.836, allocations: 4.902 MB / 1.404 GB, free: 134.6 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003029/2.839, allocations: 0.6736 MB / 1.404 GB, free: 134 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001366/2.841, allocations: 7.953 kB / 1.404 GB, free: 134 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007133/2.848, allocations: 384 kB / 1.405 GB, free: 133.7 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002027/2.85, allocations: 364.9 kB / 1.405 GB, free: 133.5 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004252/2.85, allocations: 71.5 kB / 1.405 GB, free: 133.4 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.002527/2.853, allocations: 1.156 MB / 1.406 GB, free: 132.4 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.082e-06/2.853, allocations: 4 kB / 1.406 GB, free: 132.3 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.005411/2.858, allocations: 0.9375 MB / 1.407 GB, free: 131.4 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 (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 {9 63} Notification: Performance of Backend phase and start with SimCode phase: time 0.01934/2.878, allocations: 5.508 MB / 1.412 GB, free: 126.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.02917/2.907, allocations: 5.198 MB / 1.418 GB, free: 121.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 9.168e-06/2.907, allocations: 4.125 kB / 1.418 GB, free: 121.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0251/2.932, allocations: 3.355 MB / 1.421 GB, free: 118.4 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007415/2.94, allocations: 0.8644 MB / 1.422 GB, free: 117.6 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02092/2.961, allocations: 5.497 MB / 1.427 GB, free: 112.1 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003264/2.964, allocations: 2.292 MB / 1.429 GB, free: 109.8 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.004303/2.968, allocations: 485.6 kB / 1.43 GB, free: 109.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003245/2.972, allocations: 1.315 MB / 1.431 GB, free: 108 MB / 0.8542 GB Notification: Performance of SimCode: time 1.573e-06/2.972, allocations: 0 / 1.431 GB, free: 108 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2273/3.199, allocations: 89.5 MB / 1.518 GB, free: 19.68 MB / 0.8542 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002576/3.199, allocations: 161.8 kB / 1.519 GB, free: 19.47 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.74/9.939, allocations: 0 / 1.519 GB, free: 19.47 MB / 0.8542 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)