Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.156/2.156, allocations: 251.1 MB / 266.7 MB, free: 11.57 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001418/0.001418, allocations: 179.2 kB / 326.2 MB, free: 2.859 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.452/2.452, allocations: 205.4 MB / 0.5772 GB, free: 20.77 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.0009587/0.0009584, allocations: 91.23 kB / 0.6817 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006539/0.0006541, allocations: 15.78 kB / 0.7957 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2192, allocations: 106.3 MB / 0.8995 GB, free: 65.55 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2635/0.4828, allocations: 157.5 MB / 1.053 GB, free: 3.797 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000385/0.4832, allocations: 95.95 kB / 1.053 GB, free: 3.703 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/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 7.0.1/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.1/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.6677/1.151, allocations: 11.4 MB / 1.065 GB, free: 154.9 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.786e-06/1.151, allocations: 0 / 1.065 GB, free: 154.9 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.123e-05/1.151, allocations: 2.906 kB / 1.065 GB, free: 154.9 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.0009745/1.152, allocations: 489.1 kB / 1.065 GB, free: 154.5 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/1.152, allocations: 8.969 kB / 1.065 GB, free: 154.5 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001008/1.153, allocations: 94.14 kB / 1.065 GB, free: 154.5 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004388/1.154, allocations: 239.1 kB / 1.065 GB, free: 154.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/1.154, allocations: 12.56 kB / 1.065 GB, free: 154.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.779e-05/1.154, allocations: 25.83 kB / 1.065 GB, free: 154.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007184/1.154, allocations: 293.2 kB / 1.066 GB, free: 154.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.537e-05/1.154, allocations: 1.219 kB / 1.066 GB, free: 154.2 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.276e-05/1.154, allocations: 11.55 kB / 1.066 GB, free: 154.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.075e-05/1.155, allocations: 17.83 kB / 1.066 GB, free: 154.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005403/1.155, allocations: 194.4 kB / 1.066 GB, free: 154.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002043/1.157, allocations: 1.465 MB / 1.067 GB, free: 153 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003564/1.158, allocations: 178.5 kB / 1.067 GB, free: 152.8 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.271e-05/1.158, allocations: 32.98 kB / 1.068 GB, free: 152.8 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/1.158, allocations: 5.625 kB / 1.068 GB, free: 152.8 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.242e-05/1.158, allocations: 35.88 kB / 1.068 GB, free: 152.8 MB / 0.698 GB Notification: Performance of pre-optimization done (n=7): time 2.495e-06/1.158, allocations: 0 / 1.068 GB, free: 152.8 MB / 0.698 GB Notification: Performance of matching and sorting (n=7): time 0.0006791/1.158, allocations: 228.6 kB / 1.068 GB, free: 152.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.165e-05/1.158, allocations: 52.03 kB / 1.068 GB, free: 152.6 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/1.159, allocations: 199.3 kB / 1.068 GB, free: 152.5 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.625e-05/1.159, allocations: 26.52 kB / 1.068 GB, free: 152.4 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.968e-05/1.159, allocations: 167.1 kB / 1.068 GB, free: 152.3 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.906e-05/1.159, allocations: 25.64 kB / 1.068 GB, free: 152.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.656e-06/1.159, allocations: 0.9375 kB / 1.068 GB, free: 152.3 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 7.403e-05/1.159, allocations: 328.9 kB / 1.069 GB, free: 152 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/1.159, allocations: 33.78 kB / 1.069 GB, free: 152 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001435/1.159, allocations: 109.7 kB / 1.069 GB, free: 151.9 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001429/1.159, allocations: 49.48 kB / 1.069 GB, free: 151.9 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.307e-06/1.159, allocations: 1.094 kB / 1.069 GB, free: 151.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0005135/1.16, allocations: 185.8 kB / 1.069 GB, free: 151.8 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/1.16, allocations: 6.75 kB / 1.069 GB, free: 151.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/1.16, allocations: 1.875 kB / 1.069 GB, free: 151.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002152/1.16, allocations: 30.77 kB / 1.069 GB, free: 151.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002031/1.16, allocations: 31.88 kB / 1.069 GB, free: 151.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001138/1.162, allocations: 1.319 MB / 1.07 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002204/1.162, allocations: 22.05 kB / 1.07 GB, free: 150.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.871e-05/1.162, allocations: 5.875 kB / 1.07 GB, free: 150.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.0002038/1.162, allocations: 146.7 kB / 1.07 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.248e-05/1.162, allocations: 19.22 kB / 1.07 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.131e-05/1.162, allocations: 19.19 kB / 1.07 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/1.162, allocations: 1.391 kB / 1.07 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/1.162, allocations: 5.25 kB / 1.07 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/1.162, allocations: 0.8906 kB / 1.07 GB, free: 150.4 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007319/1.163, allocations: 445.2 kB / 1.071 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/1.163, allocations: 0 / 1.071 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.257e-05/1.163, allocations: 8.219 kB / 1.071 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001321/1.163, allocations: 22.2 kB / 1.071 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/1.163, allocations: 4.625 kB / 1.071 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001067/1.164, allocations: 1.315 MB / 1.072 GB, free: 148.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.164, allocations: 4.719 kB / 1.072 GB, free: 148.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003252/1.165, allocations: 217.1 kB / 1.072 GB, free: 148.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.86e-05/1.165, allocations: 94.58 kB / 1.073 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.007e-05/1.165, allocations: 1.531 kB / 1.073 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001774/1.165, allocations: 15.83 kB / 1.073 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/1.165, allocations: 4.75 kB / 1.073 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.233e-05/1.165, allocations: 6.125 kB / 1.073 GB, free: 148.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001866/1.165, allocations: 148 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 4.51e-07/1.165, allocations: 0.8438 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004758/1.166, allocations: 48.81 kB / 1.073 GB, free: 148.4 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.0001228/1.166, allocations: 98.2 kB / 1.073 GB, free: 148.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004898/1.166, allocations: 213.4 kB / 1.073 GB, free: 148.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/1.166, allocations: 0 / 1.073 GB, free: 148.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002044/1.167, allocations: 144.9 kB / 1.073 GB, free: 148.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004938/1.167, allocations: 35.17 kB / 1.073 GB, free: 148.1 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009158/1.168, allocations: 431.4 kB / 1.074 GB, free: 147.8 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/1.168, allocations: 0.7512 MB / 1.074 GB, free: 147.1 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001702/1.169, allocations: 24.44 kB / 1.074 GB, free: 147.1 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.847e-05/1.169, allocations: 15.03 kB / 1.074 GB, free: 147.1 MB / 0.698 GB Notification: Performance of SimCode: time 1.072e-06/1.169, allocations: 0 / 1.074 GB, free: 147.1 MB / 0.698 GB Notification: Performance of Templates: time 0.00731/1.176, allocations: 1.642 MB / 1.076 GB, free: 147 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1)