Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.417/1.417, allocations: 252 MB / 267.9 MB, free: 10.92 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.0009283/0.0009282, allocations: 184.4 kB / 327.6 MB, free: 2.137 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.623/1.623, allocations: 205.4 MB / 0.5785 GB, free: 20.18 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.0007012/0.0007013, allocations: 91.69 kB / 0.6831 GB, free: 12.81 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004229/0.0004231, allocations: 12.75 kB / 0.7974 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2188, allocations: 106.3 MB / 0.9012 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1912/0.41, allocations: 157.9 MB / 1.055 GB, free: 1.508 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002987/0.4103, allocations: 95.95 kB / 1.056 GB, free: 1.414 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3-maint.7.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 7.0.3-maint.7.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.4215/0.8319, allocations: 16.2 MB / 1.071 GB, free: 153.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8319, allocations: 0.9375 kB / 1.071 GB, free: 153.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.475e-05/0.832, allocations: 6.344 kB / 1.071 GB, free: 153.7 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001202/0.8332, allocations: 0.5749 MB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/0.8332, allocations: 9.281 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001571/0.8348, allocations: 143.4 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005688/0.8354, allocations: 293.4 kB / 1.072 GB, free: 152.9 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.421e-05/0.8354, allocations: 22.03 kB / 1.072 GB, free: 152.9 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.09e-05/0.8355, allocations: 27.36 kB / 1.072 GB, free: 152.9 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009588/0.8365, allocations: 458.5 kB / 1.073 GB, free: 152.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.933e-05/0.8365, allocations: 4.125 kB / 1.073 GB, free: 152.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.186e-05/0.8366, allocations: 15.91 kB / 1.073 GB, free: 152.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.18e-05/0.8367, allocations: 26.89 kB / 1.073 GB, free: 152.7 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007601/0.8374, allocations: 316.8 kB / 1.073 GB, free: 152.7 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002465/0.8399, allocations: 2.181 MB / 1.075 GB, free: 150.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004465/0.8404, allocations: 269 kB / 1.076 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.8407, allocations: 110.6 kB / 1.076 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.146e-05/0.8407, allocations: 2.25 kB / 1.076 GB, free: 150.6 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.607e-05/0.8407, allocations: 39.84 kB / 1.076 GB, free: 150.5 MB / 0.698 GB Notification: Performance of pre-optimization done (n=14): time 2.535e-06/0.8408, allocations: 4 kB / 1.076 GB, free: 150.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=14): time 0.0007209/0.8415, allocations: 299.7 kB / 1.076 GB, free: 150.4 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.612e-05/0.8415, allocations: 57.83 kB / 1.076 GB, free: 150.3 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003437/0.8419, allocations: 262.7 kB / 1.076 GB, free: 150.2 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.8419, allocations: 27.08 kB / 1.076 GB, free: 150.1 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.842, allocations: 205.8 kB / 1.077 GB, free: 150 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.8421, allocations: 54.66 kB / 1.077 GB, free: 149.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.215e-05/0.8421, allocations: 5.031 kB / 1.077 GB, free: 149.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.521e-05/0.8422, allocations: 336.7 kB / 1.077 GB, free: 149.6 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001315/0.8423, allocations: 55.98 kB / 1.077 GB, free: 149.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001661/0.8425, allocations: 150.2 kB / 1.077 GB, free: 149.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000315/0.8428, allocations: 205.1 kB / 1.077 GB, free: 149.4 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.8428, allocations: 1 kB / 1.077 GB, free: 149.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005856/0.8434, allocations: 273.1 kB / 1.078 GB, free: 149.2 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.8435, allocations: 6.812 kB / 1.078 GB, free: 149.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.807e-06/0.8435, allocations: 1.625 kB / 1.078 GB, free: 149.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001809/0.8437, allocations: 23.62 kB / 1.078 GB, free: 149.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002543/0.8439, allocations: 58.12 kB / 1.078 GB, free: 149.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000916/0.8449, allocations: 1.316 MB / 1.079 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/0.8451, allocations: 30.44 kB / 1.079 GB, free: 147.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.8452, allocations: 8.969 kB / 1.079 GB, free: 147.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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 (27): * Single equations (assignments): 26 * 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.0001844/0.8454, allocations: 168.8 kB / 1.079 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.73e-05/0.8454, allocations: 23.34 kB / 1.079 GB, free: 147.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.731e-05/0.8455, allocations: 31.77 kB / 1.079 GB, free: 147.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.937e-06/0.8455, allocations: 1.031 kB / 1.079 GB, free: 147.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.8455, allocations: 1.125 kB / 1.079 GB, free: 147.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.8455, allocations: 4.062 kB / 1.079 GB, free: 147.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.8466, allocations: 0.7089 MB / 1.08 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.8466, allocations: 1.562 kB / 1.08 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001276/0.8468, allocations: 22.23 kB / 1.08 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001012/0.8469, allocations: 27.62 kB / 1.08 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.8469, allocations: 2.156 kB / 1.08 GB, free: 147.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008605/0.8478, allocations: 1.326 MB / 1.081 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.338e-06/0.8478, allocations: 0.9375 kB / 1.081 GB, free: 145.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004207/0.8482, allocations: 314.8 kB / 1.082 GB, free: 145.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.8484, allocations: 123.5 kB / 1.082 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.299e-05/0.8484, allocations: 5.594 kB / 1.082 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002417/0.8487, allocations: 12.88 kB / 1.082 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.936e-05/0.8487, allocations: 12.7 kB / 1.082 GB, free: 145.5 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.714e-05/0.8488, allocations: 6.781 kB / 1.082 GB, free: 145.5 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002457/0.849, allocations: 188.7 kB / 1.082 GB, free: 145.4 MB / 0.698 GB Notification: Performance of sort global known variables: time 2e-07/0.849, allocations: 1 kB / 1.082 GB, free: 145.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006701/0.8497, allocations: 74.16 kB / 1.082 GB, free: 145.4 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (14): * Single equations (assignments): 13 * 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.0001188/0.8498, allocations: 109.4 kB / 1.082 GB, free: 145.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.000577/0.8504, allocations: 269.7 kB / 1.082 GB, free: 145.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.8504, allocations: 0 / 1.082 GB, free: 145.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002522/0.8507, allocations: 184 kB / 1.082 GB, free: 145.1 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000764/0.8515, allocations: 59.81 kB / 1.083 GB, free: 145 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001153/0.8526, allocations: 0.6472 MB / 1.083 GB, free: 144.6 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003068/0.853, allocations: 0.799 MB / 1.084 GB, free: 143.8 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002334/0.8532, allocations: 40.7 kB / 1.084 GB, free: 143.8 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.872e-05/0.8533, allocations: 19.78 kB / 1.084 GB, free: 143.8 MB / 0.698 GB Notification: Performance of SimCode: time 3.31e-07/0.8533, allocations: 0 / 1.084 GB, free: 143.8 MB / 0.698 GB Notification: Performance of Templates: time 0.008424/0.8617, allocations: 2.526 MB / 1.086 GB, free: 142.6 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1)