Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.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.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.VariableLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|loa1.i.1.|loa2.i.1.|loa3.i.1.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.431/1.431, allocations: 251.9 MB / 266.9 MB, free: 10.99 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.0009498/0.0009497, allocations: 184 kB / 326.5 MB, free: 2.246 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.631/1.631, allocations: 205.4 MB / 0.5775 GB, free: 20.53 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.0008723/0.0008724, allocations: 89.77 kB / 0.6821 GB, free: 13.34 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003719/0.0003719, allocations: 14.52 kB / 0.7962 GB, free: 135.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2288/0.2292, allocations: 106.3 MB / 0.9001 GB, free: 64.46 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1952/0.4244, allocations: 159.6 MB / 1.056 GB, free: 0.668 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002946/0.4248, allocations: 91.95 kB / 1.056 GB, free: 0.5781 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.5339/0.9587, allocations: 19.5 MB / 1.075 GB, free: 153.2 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.773e-06/0.9588, allocations: 0 / 1.075 GB, free: 153.2 MB / 0.698 GB Notification: Performance of Transformations before backend: time 3.983e-05/0.9588, allocations: 11.34 kB / 1.075 GB, free: 153.2 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: 82 * Number of variables: 82 Notification: Performance of Generate backend data structure: time 0.001432/0.9603, allocations: 0.6144 MB / 1.076 GB, free: 152.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/0.9603, allocations: 8.969 kB / 1.076 GB, free: 152.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009214/0.9613, allocations: 102.3 kB / 1.076 GB, free: 152.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005599/0.9618, allocations: 295.2 kB / 1.076 GB, free: 152.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.382e-05/0.9619, allocations: 24.41 kB / 1.076 GB, free: 152.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.285e-05/0.962, allocations: 33.36 kB / 1.076 GB, free: 152.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009666/0.9629, allocations: 480.2 kB / 1.077 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.963, allocations: 1.188 kB / 1.077 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.744e-05/0.963, allocations: 12.06 kB / 1.077 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.872e-05/0.9631, allocations: 30.33 kB / 1.077 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009496/0.964, allocations: 383.8 kB / 1.077 GB, free: 152.1 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002409/0.9665, allocations: 2.061 MB / 1.079 GB, free: 150.3 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006221/0.9671, allocations: 220.9 kB / 1.079 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.9671, allocations: 1.438 kB / 1.079 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.259e-05/0.9672, allocations: 43.92 kB / 1.079 GB, free: 150.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=18): time 2.415e-06/0.9672, allocations: 5.406 kB / 1.079 GB, free: 150.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=18): time 0.001132/0.9683, allocations: 454.3 kB / 1.08 GB, free: 150 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.281e-05/0.9684, allocations: 57.28 kB / 1.08 GB, free: 149.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000294/0.9687, allocations: 232 kB / 1.08 GB, free: 149.8 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.922e-05/0.9687, allocations: 35.42 kB / 1.08 GB, free: 149.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/0.9688, allocations: 213.8 kB / 1.08 GB, free: 149.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 4.793e-05/0.9689, allocations: 62.3 kB / 1.08 GB, free: 149.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.343e-05/0.9689, allocations: 7.25 kB / 1.08 GB, free: 149.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.511e-05/0.969, allocations: 338.2 kB / 1.081 GB, free: 149.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002722/0.9693, allocations: 109.1 kB / 1.081 GB, free: 149.2 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003013/0.9696, allocations: 213.4 kB / 1.081 GB, free: 149 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003062/0.9699, allocations: 136.4 kB / 1.081 GB, free: 149 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.9699, allocations: 1 kB / 1.081 GB, free: 149 MB / 0.698 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.000797/0.9707, allocations: 384.2 kB / 1.081 GB, free: 148.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002745/0.971, allocations: 1.306 MB / 1.083 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.971, allocations: 3.062 kB / 1.083 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002047/0.9712, allocations: 33.97 kB / 1.083 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000324/0.9716, allocations: 73.77 kB / 1.083 GB, free: 147.5 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003104/0.9719, allocations: 0.5544 MB / 1.083 GB, free: 146.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003219/0.9722, allocations: 48.05 kB / 1.083 GB, free: 146.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.949e-05/0.9723, allocations: 15.03 kB / 1.083 GB, free: 146.9 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/0.9723, allocations: 5.781 kB / 1.083 GB, free: 146.9 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006396/0.9729, allocations: 311.2 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.973, allocations: 3.875 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.117e-06/0.973, allocations: 5.188 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003276/0.9733, allocations: 81.36 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.028e-05/0.9733, allocations: 8.719 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000269/0.9736, allocations: 39.02 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.771e-05/0.9736, allocations: 19.14 kB / 1.084 GB, free: 146.8 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (32): * Single equations (assignments): 31 * 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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.000258/0.9739, allocations: 243.2 kB / 1.084 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.628e-05/0.974, allocations: 31.48 kB / 1.084 GB, free: 146.6 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.281e-05/0.9741, allocations: 36.72 kB / 1.084 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.2e-06/0.9741, allocations: 2.188 kB / 1.084 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.104e-06/0.9741, allocations: 0 / 1.084 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.9741, allocations: 1.156 kB / 1.084 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004325/0.9745, allocations: 349.5 kB / 1.084 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.9746, allocations: 0 / 1.084 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002151/0.9748, allocations: 41.81 kB / 1.084 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001057/0.9749, allocations: 35.69 kB / 1.085 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.897e-05/0.9749, allocations: 9.875 kB / 1.085 GB, free: 146.2 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007982/0.9757, allocations: 1.321 MB / 1.086 GB, free: 144.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.9757, allocations: 0 / 1.086 GB, free: 144.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006279/0.9764, allocations: 382.1 kB / 1.086 GB, free: 144.6 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001339/0.9765, allocations: 109.5 kB / 1.086 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.225e-05/0.9766, allocations: 9.078 kB / 1.086 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002031/0.9768, allocations: 24.86 kB / 1.086 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.348e-05/0.9769, allocations: 10.11 kB / 1.086 GB, free: 144.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.745e-05/0.9769, allocations: 4.031 kB / 1.086 GB, free: 144.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002399/0.9771, allocations: 189.7 kB / 1.087 GB, free: 144.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 2.21e-07/0.9771, allocations: 0.5312 kB / 1.087 GB, free: 144.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0007111/0.9779, allocations: 141.1 kB / 1.087 GB, free: 144.3 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 (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: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.000132/0.978, allocations: 108.6 kB / 1.087 GB, free: 144.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001086/0.9791, allocations: 422.4 kB / 1.087 GB, free: 144 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.9791, allocations: 0 / 1.087 GB, free: 144 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004822/0.9796, allocations: 237.6 kB / 1.087 GB, free: 143.8 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004753/0.9801, allocations: 64.5 kB / 1.087 GB, free: 143.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.9814, allocations: 0.6586 MB / 1.088 GB, free: 143.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.9818, allocations: 0.8095 MB / 1.089 GB, free: 142.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003389/0.9822, allocations: 72.75 kB / 1.089 GB, free: 142.5 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.646e-05/0.9823, allocations: 24.25 kB / 1.089 GB, free: 142.5 MB / 0.698 GB Notification: Performance of SimCode: time 3.11e-07/0.9823, allocations: 0.5 kB / 1.089 GB, free: 142.5 MB / 0.698 GB Notification: Performance of Templates: time 0.007226/0.9895, allocations: 2.946 MB / 1.092 GB, free: 141.1 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches