Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.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 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_maint_8_0_x_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.1-maint.8.0.x/package.mo): time 1.674/1.674, allocations: 285.6 MB / 293.1 MB, free: 10.25 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.001215/0.001215, allocations: 176.9 kB / 361.4 MB, free: 6.867 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.652/1.652, allocations: 205.2 MB / 0.62 GB, free: 11.65 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.0009097/0.0009098, allocations: 92.81 kB / 0.733 GB, free: 44.16 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.607e-05/3.603e-05, allocations: 4 kB / 0.8518 GB, free: 2.629 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8018/0.8019, allocations: 115.3 MB / 0.9644 GB, free: 78.82 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2247/1.027, allocations: 163.3 MB / 1.124 GB, free: 8.426 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/1.027, allocations: 83.95 kB / 1.124 GB, free: 8.344 MB / 0.7292 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.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.0.1-maint.8.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 8.0.1-maint.8.0.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.02801/1.055, allocations: 11.26 MB / 1.135 GB, free: 13.07 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.864e-06/1.055, allocations: 0 / 1.135 GB, free: 13.07 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 2.105e-05/1.055, allocations: 4 kB / 1.135 GB, free: 13.06 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.0007946/1.056, allocations: 474.2 kB / 1.135 GB, free: 12.55 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/1.056, allocations: 8.031 kB / 1.135 GB, free: 12.54 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006995/1.057, allocations: 83.73 kB / 1.136 GB, free: 12.46 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/1.057, allocations: 248.9 kB / 1.136 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/1.057, allocations: 8 kB / 1.136 GB, free: 12.18 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.493e-05/1.057, allocations: 8.562 kB / 1.136 GB, free: 12.17 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003185/1.057, allocations: 168.8 kB / 1.136 GB, free: 12 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004133/1.058, allocations: 262.8 kB / 1.136 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/1.058, allocations: 0 / 1.136 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.543e-05/1.058, allocations: 0 / 1.136 GB, free: 11.72 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.801e-05/1.058, allocations: 16.36 kB / 1.136 GB, free: 11.7 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001577/1.059, allocations: 1.417 MB / 1.138 GB, free: 10.14 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/1.06, allocations: 171.7 kB / 1.138 GB, free: 9.945 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.169e-05/1.06, allocations: 32.84 kB / 1.138 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 8.356e-06/1.06, allocations: 0 / 1.138 GB, free: 9.91 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.766e-05/1.06, allocations: 30.56 kB / 1.138 GB, free: 9.871 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/1.06, allocations: 4 kB / 1.138 GB, free: 9.867 MB / 0.7448 GB Notification: Performance of matching and sorting (n=7): time 0.0002931/1.06, allocations: 100.4 kB / 1.138 GB, free: 9.762 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.099e-05/1.06, allocations: 55.34 kB / 1.138 GB, free: 9.695 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/1.06, allocations: 162 kB / 1.138 GB, free: 9.531 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/1.06, allocations: 29.7 kB / 1.138 GB, free: 9.496 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001027/1.061, allocations: 167.7 kB / 1.138 GB, free: 9.328 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.896e-05/1.061, allocations: 19.66 kB / 1.138 GB, free: 9.309 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/1.061, allocations: 0 / 1.138 GB, free: 9.309 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001658/1.061, allocations: 330.8 kB / 1.139 GB, free: 8.977 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.908e-05/1.061, allocations: 27.98 kB / 1.139 GB, free: 8.949 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001049/1.061, allocations: 105.4 kB / 1.139 GB, free: 8.816 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.928e-05/1.061, allocations: 42.42 kB / 1.139 GB, free: 8.777 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/1.061, allocations: 4 kB / 1.139 GB, free: 8.773 MB / 0.7448 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002845/1.061, allocations: 166.2 kB / 1.139 GB, free: 8.602 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/1.061, allocations: 4 kB / 1.139 GB, free: 8.598 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.493e-06/1.061, allocations: 4.281 kB / 1.139 GB, free: 8.594 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001578/1.062, allocations: 28.84 kB / 1.139 GB, free: 8.562 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001099/1.062, allocations: 27.98 kB / 1.139 GB, free: 8.535 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001065/1.063, allocations: 1.262 MB / 1.14 GB, free: 7.156 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/1.063, allocations: 13.53 kB / 1.14 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.473e-05/1.063, allocations: 7.953 kB / 1.14 GB, free: 7.137 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 8.918e-05/1.063, allocations: 108.9 kB / 1.14 GB, free: 7.023 MB / 0.7448 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001878/1.063, allocations: 106.3 kB / 1.14 GB, free: 6.91 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.474e-05/1.063, allocations: 16.05 kB / 1.141 GB, free: 6.895 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.39e-05/1.063, allocations: 21.78 kB / 1.141 GB, free: 6.875 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/1.063, allocations: 4 kB / 1.141 GB, free: 6.871 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.073e-06/1.063, allocations: 0 / 1.141 GB, free: 6.871 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/1.063, allocations: 3.984 kB / 1.141 GB, free: 6.867 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004657/1.064, allocations: 396 kB / 1.141 GB, free: 6.434 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/1.064, allocations: 1.219 kB / 1.141 GB, free: 6.434 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.63e-05/1.064, allocations: 4 kB / 1.141 GB, free: 6.43 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.755e-05/1.064, allocations: 28.84 kB / 1.141 GB, free: 6.398 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.083e-05/1.064, allocations: 0 / 1.141 GB, free: 6.398 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000954/1.065, allocations: 1.257 MB / 1.142 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/1.065, allocations: 0 / 1.142 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002154/1.065, allocations: 212.1 kB / 1.142 GB, free: 4.805 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 8.723e-05/1.065, allocations: 100.9 kB / 1.142 GB, free: 4.688 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.038e-05/1.065, allocations: 0 / 1.142 GB, free: 4.688 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/1.065, allocations: 9.531 kB / 1.142 GB, free: 4.68 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.306e-05/1.065, allocations: 11.98 kB / 1.142 GB, free: 4.668 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.32e-06/1.065, allocations: 0 / 1.142 GB, free: 4.668 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001086/1.066, allocations: 131.8 kB / 1.143 GB, free: 4.539 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.61e-07/1.066, allocations: 2.438 kB / 1.143 GB, free: 4.539 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0003321/1.066, allocations: 51.75 kB / 1.143 GB, free: 4.488 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.0005398/1.066, allocations: 0.7386 MB / 1.143 GB, free: 3.723 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0003269/1.067, allocations: 181.7 kB / 1.144 GB, free: 3.535 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/1.067, allocations: 0 / 1.144 GB, free: 3.535 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0001482/1.067, allocations: 146.3 kB / 1.144 GB, free: 3.383 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002723/1.067, allocations: 23.98 kB / 1.144 GB, free: 3.359 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006376/1.068, allocations: 272.1 kB / 1.144 GB, free: 3.062 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003644/1.068, allocations: 0.7553 MB / 1.145 GB, free: 2.281 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 0.000109/1.068, allocations: 17.2 kB / 1.145 GB, free: 2.266 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.403e-05/1.068, allocations: 55.41 kB / 1.145 GB, free: 2.211 MB / 0.7448 GB Notification: Performance of SimCode: time 3.4e-07/1.068, allocations: 0 / 1.145 GB, free: 2.211 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02211/1.091, allocations: 2.719 MB / 1.147 GB, free: 15.57 MB / 0.7605 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/1.091, allocations: 152 kB / 1.148 GB, free: 15.38 MB / 0.7605 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.557/2.648, allocations: 4 kB / 1.148 GB, free: 15.37 MB / 0.7605 GB (rm -f Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_maint.8.0.x_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)