Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_8_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.1.4-maint.8.1.x/package.mo): time 1.859/1.859, allocations: 289.7 MB / 302.2 MB, free: 2.16 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.001164/0.001164, allocations: 180 kB / 371.6 MB, free: 3.371 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.1 MB / 0.6309 GB, free: 11.81 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.0009098/0.0009098, allocations: 89.09 kB / 0.745 GB, free: 54.51 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.245e-05/4.246e-05, allocations: 4 kB / 0.8663 GB, free: 15.02 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.2985, allocations: 116.3 MB / 0.9799 GB, free: 10.56 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8853/1.184, allocations: 164.9 MB / 1.141 GB, free: 26.21 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002416/1.184, allocations: 90.72 kB / 1.141 GB, free: 26.18 MB / 0.7448 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4-maint.8.1.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.1.4-maint.8.1.x/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.02761/1.212, allocations: 11.3 MB / 1.152 GB, free: 20.35 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.405e-06/1.212, allocations: 0 / 1.152 GB, free: 20.35 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.118e-05/1.212, allocations: 5.125 kB / 1.152 GB, free: 20.34 MB / 0.7448 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.0008138/1.213, allocations: 485.7 kB / 1.153 GB, free: 19.86 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.27e-05/1.213, allocations: 8.031 kB / 1.153 GB, free: 19.86 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001088/1.213, allocations: 56.78 kB / 1.153 GB, free: 19.81 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007341/1.214, allocations: 78.06 kB / 1.153 GB, free: 19.75 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004312/1.214, allocations: 244.2 kB / 1.153 GB, free: 19.5 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.406e-05/1.214, allocations: 14.88 kB / 1.153 GB, free: 19.5 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.272e-05/1.214, allocations: 27.17 kB / 1.153 GB, free: 19.48 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004986/1.215, allocations: 274.1 kB / 1.153 GB, free: 19.29 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/1.215, allocations: 7.938 kB / 1.153 GB, free: 19.29 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.01e-05/1.215, allocations: 5.953 kB / 1.153 GB, free: 19.29 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-05/1.215, allocations: 18.33 kB / 1.153 GB, free: 19.27 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003283/1.215, allocations: 196.4 kB / 1.153 GB, free: 19.16 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001519/1.217, allocations: 1.462 MB / 1.155 GB, free: 17.77 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/1.217, allocations: 172.2 kB / 1.155 GB, free: 17.6 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.65e-05/1.217, allocations: 30.78 kB / 1.155 GB, free: 17.58 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 1.104e-05/1.217, allocations: 4.609 kB / 1.155 GB, free: 17.57 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.626e-05/1.217, allocations: 37.19 kB / 1.155 GB, free: 17.53 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.804e-06/1.217, allocations: 5.906 kB / 1.155 GB, free: 17.53 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0003094/1.217, allocations: 110.9 kB / 1.155 GB, free: 17.43 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/1.217, allocations: 55.55 kB / 1.155 GB, free: 17.37 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001755/1.218, allocations: 178.5 kB / 1.155 GB, free: 17.22 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.649e-05/1.218, allocations: 30.22 kB / 1.155 GB, free: 17.19 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 8.251e-05/1.218, allocations: 169.5 kB / 1.156 GB, free: 17.05 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/1.218, allocations: 25.92 kB / 1.156 GB, free: 17.03 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/1.218, allocations: 0 / 1.156 GB, free: 17.03 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.796e-05/1.218, allocations: 325.7 kB / 1.156 GB, free: 16.71 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.848e-05/1.218, allocations: 39.58 kB / 1.156 GB, free: 16.68 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.786e-05/1.218, allocations: 94.8 kB / 1.156 GB, free: 16.58 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.641e-05/1.218, allocations: 56.02 kB / 1.156 GB, free: 16.55 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/1.218, allocations: 2.625 kB / 1.156 GB, free: 16.55 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003041/1.218, allocations: 186.2 kB / 1.156 GB, free: 16.4 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.98e-05/1.218, allocations: 8.609 kB / 1.156 GB, free: 16.39 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/1.218, allocations: 9.172 kB / 1.156 GB, free: 16.39 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001732/1.219, allocations: 24.27 kB / 1.156 GB, free: 16.37 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/1.219, allocations: 22.62 kB / 1.156 GB, free: 16.35 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008053/1.22, allocations: 1.322 MB / 1.158 GB, free: 14.98 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001251/1.22, allocations: 16.45 kB / 1.158 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.083e-05/1.22, allocations: 10.88 kB / 1.158 GB, free: 14.96 MB / 0.7448 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 () * 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 6.833e-05/1.22, allocations: 112.5 kB / 1.158 GB, free: 14.84 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.544e-05/1.22, allocations: 15.81 kB / 1.158 GB, free: 14.83 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.274e-05/1.22, allocations: 18.94 kB / 1.158 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/1.22, allocations: 0.5156 kB / 1.158 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.077e-06/1.22, allocations: 3.953 kB / 1.158 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/1.22, allocations: 0.75 kB / 1.158 GB, free: 14.82 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004659/1.22, allocations: 439.5 kB / 1.158 GB, free: 14.42 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/1.22, allocations: 6.062 kB / 1.158 GB, free: 14.42 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.535e-05/1.22, allocations: 12.61 kB / 1.158 GB, free: 14.41 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.152e-05/1.22, allocations: 20.03 kB / 1.158 GB, free: 14.39 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/1.221, allocations: 7.5 kB / 1.158 GB, free: 14.39 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006621/1.221, allocations: 1.309 MB / 1.16 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/1.221, allocations: 0.6094 kB / 1.16 GB, free: 13.03 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001796/1.221, allocations: 216.6 kB / 1.16 GB, free: 12.83 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 6.264e-05/1.221, allocations: 99.98 kB / 1.16 GB, free: 12.72 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.621e-05/1.221, allocations: 8.547 kB / 1.16 GB, free: 12.71 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.947e-05/1.222, allocations: 5.453 kB / 1.16 GB, free: 12.71 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.093e-05/1.222, allocations: 1.922 kB / 1.16 GB, free: 12.71 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.921e-06/1.222, allocations: 6.875 kB / 1.16 GB, free: 12.71 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001052/1.222, allocations: 140.1 kB / 1.16 GB, free: 12.59 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.5e-07/1.222, allocations: 0 / 1.16 GB, free: 12.59 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0002989/1.222, allocations: 55.41 kB / 1.16 GB, free: 12.54 MB / 0.7448 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 () * 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.0003555/1.222, allocations: 0.7477 MB / 1.161 GB, free: 11.8 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003016/1.223, allocations: 210.1 kB / 1.161 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.223, allocations: 64 / 1.161 GB, free: 11.62 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/1.223, allocations: 144.5 kB / 1.161 GB, free: 11.48 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/1.223, allocations: 30.42 kB / 1.161 GB, free: 11.46 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005616/1.224, allocations: 281.8 kB / 1.161 GB, free: 11.22 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002079/1.224, allocations: 0.7618 MB / 1.162 GB, free: 10.47 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 9.623e-05/1.224, allocations: 24.23 kB / 1.162 GB, free: 10.46 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.224e-05/1.224, allocations: 48.75 kB / 1.162 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of SimCode: time 2.51e-07/1.224, allocations: 0 / 1.162 GB, free: 10.45 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01633/1.24, allocations: 3.339 MB / 1.166 GB, free: 8.535 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002054/1.241, allocations: 175.3 kB / 1.166 GB, free: 8.309 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.637/2.877, allocations: 3.938 kB / 1.166 GB, free: 8.305 MB / 0.7448 GB (rm -f Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_8_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)