Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance",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.619/2.619, allocations: 287.3 MB / 302.3 MB, free: 8.238 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.001547/0.001546, allocations: 181.9 kB / 370.8 MB, free: 10.87 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.208/2.208, allocations: 205.4 MB / 0.6295 GB, free: 10.53 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001132/0.001132, allocations: 90 kB / 0.7428 GB, free: 6.535 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.000671/0.000671, allocations: 10.97 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2441/0.2449, allocations: 115.3 MB / 0.9783 GB, free: 28.3 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9359/1.181, allocations: 163.9 MB / 1.138 GB, free: 14.27 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003703/1.181, allocations: 92.86 kB / 1.138 GB, free: 14.26 MB / 0.6823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/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/DC/Sensors/GeneralizedSensor.mo:39:3-39: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.055/1.236, allocations: 11.39 MB / 1.15 GB, free: 25.37 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.585e-06/1.236, allocations: 3.906 kB / 1.15 GB, free: 25.37 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.546e-05/1.236, allocations: 3.781 kB / 1.15 GB, free: 25.37 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001268/1.238, allocations: 490.5 kB / 1.15 GB, free: 24.92 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.808e-05/1.238, allocations: 11.8 kB / 1.15 GB, free: 24.92 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001379/1.238, allocations: 58.12 kB / 1.15 GB, free: 24.87 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00146/1.239, allocations: 85.02 kB / 1.15 GB, free: 24.84 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000621/1.24, allocations: 248.9 kB / 1.15 GB, free: 24.6 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.537e-05/1.24, allocations: 12.03 kB / 1.15 GB, free: 24.6 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.511e-05/1.24, allocations: 18.66 kB / 1.15 GB, free: 24.6 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008516/1.241, allocations: 290 kB / 1.151 GB, free: 24.46 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/1.241, allocations: 0 / 1.151 GB, free: 24.46 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.227e-05/1.241, allocations: 10.44 kB / 1.151 GB, free: 24.46 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.492e-05/1.241, allocations: 16.05 kB / 1.151 GB, free: 24.46 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006573/1.242, allocations: 192.1 kB / 1.151 GB, free: 24.43 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002686/1.245, allocations: 1.476 MB / 1.152 GB, free: 23.09 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005286/1.245, allocations: 182.5 kB / 1.153 GB, free: 22.95 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.364e-05/1.245, allocations: 0 / 1.153 GB, free: 22.95 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.452e-05/1.245, allocations: 34.38 kB / 1.153 GB, free: 22.91 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 2.084e-06/1.245, allocations: 0 / 1.153 GB, free: 22.91 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0007054/1.246, allocations: 220.8 kB / 1.153 GB, free: 22.76 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.655e-05/1.246, allocations: 59.36 kB / 1.153 GB, free: 22.69 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003744/1.247, allocations: 182.5 kB / 1.153 GB, free: 22.57 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/1.247, allocations: 33.66 kB / 1.153 GB, free: 22.54 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001266/1.247, allocations: 160.3 kB / 1.153 GB, free: 22.41 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.56e-05/1.247, allocations: 31.39 kB / 1.153 GB, free: 22.38 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.153e-05/1.247, allocations: 3.25 kB / 1.153 GB, free: 22.38 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001606/1.247, allocations: 322.4 kB / 1.154 GB, free: 22.07 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.454e-05/1.247, allocations: 29.61 kB / 1.154 GB, free: 22.06 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/1.247, allocations: 107.5 kB / 1.154 GB, free: 21.97 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001338/1.247, allocations: 52.17 kB / 1.154 GB, free: 21.96 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.573e-06/1.247, allocations: 3.875 kB / 1.154 GB, free: 21.96 MB / 0.698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0004811/1.248, allocations: 183.2 kB / 1.154 GB, free: 21.88 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/1.248, allocations: 7.5 kB / 1.154 GB, free: 21.88 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/1.248, allocations: 288 / 1.154 GB, free: 21.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000222/1.248, allocations: 31.78 kB / 1.154 GB, free: 21.87 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001998/1.248, allocations: 39.06 kB / 1.154 GB, free: 21.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001503/1.25, allocations: 1.317 MB / 1.155 GB, free: 20.53 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/1.25, allocations: 23.47 kB / 1.155 GB, free: 20.51 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.517e-05/1.25, allocations: 4 kB / 1.155 GB, free: 20.5 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002282/1.25, allocations: 143.2 kB / 1.155 GB, free: 20.37 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.898e-05/1.251, allocations: 11.91 kB / 1.155 GB, free: 20.36 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.842e-05/1.251, allocations: 24.77 kB / 1.155 GB, free: 20.34 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/1.251, allocations: 7.938 kB / 1.155 GB, free: 20.33 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/1.251, allocations: 7.984 kB / 1.155 GB, free: 20.32 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/1.251, allocations: 0 / 1.155 GB, free: 20.32 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007789/1.251, allocations: 441.9 kB / 1.156 GB, free: 19.89 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.627e-06/1.251, allocations: 0 / 1.156 GB, free: 19.89 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.626e-05/1.252, allocations: 11.94 kB / 1.156 GB, free: 19.88 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001343/1.252, allocations: 23.34 kB / 1.156 GB, free: 19.85 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.27e-05/1.252, allocations: 4 kB / 1.156 GB, free: 19.85 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001372/1.253, allocations: 1.314 MB / 1.157 GB, free: 18.46 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/1.253, allocations: 3.938 kB / 1.157 GB, free: 18.46 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003895/1.254, allocations: 217.5 kB / 1.157 GB, free: 18.25 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001288/1.254, allocations: 100.1 kB / 1.157 GB, free: 18.13 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.888e-05/1.254, allocations: 3.938 kB / 1.157 GB, free: 18.13 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000176/1.254, allocations: 4 kB / 1.157 GB, free: 18.12 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.553e-05/1.254, allocations: 16.05 kB / 1.158 GB, free: 18.11 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.119e-05/1.254, allocations: 0 / 1.158 GB, free: 18.11 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001872/1.254, allocations: 154 kB / 1.158 GB, free: 17.98 MB / 0.698 GB Notification: Performance of sort global known variables: time 3.81e-07/1.254, allocations: 0 / 1.158 GB, free: 17.98 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000462/1.255, allocations: 51.59 kB / 1.158 GB, free: 17.93 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007217/1.255, allocations: 0.7417 MB / 1.158 GB, free: 17.18 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005016/1.256, allocations: 208.7 kB / 1.159 GB, free: 16.99 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/1.256, allocations: 0 / 1.159 GB, free: 16.99 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002128/1.256, allocations: 153.7 kB / 1.159 GB, free: 16.84 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/1.257, allocations: 34.84 kB / 1.159 GB, free: 16.81 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002711/1.259, allocations: 2.383 MB / 1.161 GB, free: 14.45 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/1.26, allocations: 0.7516 MB / 1.162 GB, free: 13.68 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002061/1.26, allocations: 25.53 kB / 1.162 GB, free: 13.65 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001074/1.26, allocations: 53.61 kB / 1.162 GB, free: 13.64 MB / 0.698 GB Notification: Performance of SimCode: time 1.402e-06/1.26, allocations: 3.938 kB / 1.162 GB, free: 13.63 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0337/1.294, allocations: 3.344 MB / 1.165 GB, free: 10.46 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002538/1.294, allocations: 204.3 kB / 1.165 GB, free: 10.21 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.534/3.828, allocations: 0 / 1.165 GB, free: 10.21 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)