Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.194/2.194, allocations: 387.4 MB / 394.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001153/0.001153, allocations: 168.9 kB / 487.4 MB, free: 5.027 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.522/1.522, allocations: 221.5 MB / 0.7824 GB, free: 0.9258 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008971/0.0008971, allocations: 103.8 kB / 0.9219 GB, free: 2.152 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.411e-05/2.42e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3644/0.3644, allocations: 142.4 MB / 1.206 GB, free: 43.93 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.002/1.367, allocations: 176.7 MB / 1.379 GB, free: 18.3 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/1.367, allocations: 92.73 kB / 1.379 GB, free: 18.3 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Interfaces/Source.mo:28:9-28: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 9.1.1-maint.9.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 9.1.1-maint.9.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.04728/1.414, allocations: 23.66 MB / 1.402 GB, free: 25.03 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.463e-06/1.414, allocations: 0 / 1.402 GB, free: 25.03 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.523e-05/1.414, allocations: 7.156 kB / 1.402 GB, free: 25.03 MB / 0.8386 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.001088/1.416, allocations: 0.5966 MB / 1.402 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/1.416, allocations: 8.312 kB / 1.402 GB, free: 24.54 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008548/1.416, allocations: 105.2 kB / 1.402 GB, free: 24.49 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/1.417, allocations: 292 kB / 1.403 GB, free: 24.24 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/1.417, allocations: 11.69 kB / 1.403 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.865e-05/1.417, allocations: 19.34 kB / 1.403 GB, free: 24.23 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000424/1.417, allocations: 272.5 kB / 1.403 GB, free: 24.21 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005091/1.418, allocations: 404.9 kB / 1.403 GB, free: 24.04 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.562e-05/1.418, allocations: 7.875 kB / 1.403 GB, free: 24.03 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.397e-05/1.418, allocations: 7.828 kB / 1.403 GB, free: 24.02 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.07e-05/1.418, allocations: 27.05 kB / 1.403 GB, free: 24.02 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001886/1.42, allocations: 1.989 MB / 1.405 GB, free: 22.31 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003788/1.42, allocations: 174.3 kB / 1.406 GB, free: 22.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002264/1.421, allocations: 134.2 kB / 1.406 GB, free: 22.24 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.013e-05/1.421, allocations: 0 / 1.406 GB, free: 22.24 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.294e-05/1.421, allocations: 38.25 kB / 1.406 GB, free: 22.2 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=18): time 1.082e-06/1.421, allocations: 0 / 1.406 GB, free: 22.2 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18): time 0.0004352/1.421, allocations: 192.7 kB / 1.406 GB, free: 22.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.514e-05/1.421, allocations: 55.25 kB / 1.406 GB, free: 22.06 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002191/1.421, allocations: 184.8 kB / 1.406 GB, free: 21.95 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.278e-05/1.421, allocations: 25.7 kB / 1.406 GB, free: 21.92 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/1.421, allocations: 216.6 kB / 1.406 GB, free: 21.75 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.926e-05/1.422, allocations: 65.33 kB / 1.406 GB, free: 21.7 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.26e-05/1.422, allocations: 0 / 1.406 GB, free: 21.7 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001669/1.422, allocations: 338.2 kB / 1.407 GB, free: 21.38 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.769e-05/1.422, allocations: 61.02 kB / 1.407 GB, free: 21.37 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001405/1.422, allocations: 170.9 kB / 1.407 GB, free: 21.22 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/1.422, allocations: 97.12 kB / 1.407 GB, free: 21.16 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.422, allocations: 0 / 1.407 GB, free: 21.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004308/1.423, allocations: 264.1 kB / 1.407 GB, free: 20.94 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005525/1.423, allocations: 1.402 MB / 1.409 GB, free: 19.45 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.778e-06/1.423, allocations: 0 / 1.409 GB, free: 19.45 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001672/1.423, allocations: 28.22 kB / 1.409 GB, free: 19.42 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002664/1.424, allocations: 79.58 kB / 1.409 GB, free: 19.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003881/1.424, allocations: 0.5543 MB / 1.409 GB, free: 18.78 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/1.424, allocations: 35.73 kB / 1.409 GB, free: 18.74 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.315e-05/1.424, allocations: 11.88 kB / 1.409 GB, free: 18.73 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.025e-05/1.424, allocations: 14.22 kB / 1.409 GB, free: 18.72 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000268/1.425, allocations: 183.2 kB / 1.41 GB, free: 18.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/1.425, allocations: 4 kB / 1.41 GB, free: 18.58 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.442e-06/1.425, allocations: 8.469 kB / 1.41 GB, free: 18.57 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002515/1.425, allocations: 75.89 kB / 1.41 GB, free: 18.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.172e-06/1.425, allocations: 11.92 kB / 1.41 GB, free: 18.48 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/1.425, allocations: 39.67 kB / 1.41 GB, free: 18.45 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.766e-05/1.425, allocations: 11.88 kB / 1.41 GB, free: 18.44 MB / 0.8386 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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.0001012/1.425, allocations: 116.9 kB / 1.41 GB, free: 18.32 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.332e-05/1.425, allocations: 19.81 kB / 1.41 GB, free: 18.3 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.055e-05/1.425, allocations: 28.2 kB / 1.41 GB, free: 18.29 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/1.425, allocations: 4 kB / 1.41 GB, free: 18.29 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/1.425, allocations: 0 / 1.41 GB, free: 18.29 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/1.425, allocations: 0 / 1.41 GB, free: 18.29 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007097/1.426, allocations: 0.644 MB / 1.41 GB, free: 17.68 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-06/1.426, allocations: 0 / 1.41 GB, free: 17.68 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001824/1.426, allocations: 39.97 kB / 1.411 GB, free: 17.64 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.095e-05/1.426, allocations: 36.52 kB / 1.411 GB, free: 17.6 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.48e-05/1.426, allocations: 8.062 kB / 1.411 GB, free: 17.59 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008672/1.427, allocations: 1.256 MB / 1.412 GB, free: 16.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/1.427, allocations: 4.031 kB / 1.412 GB, free: 16.27 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003484/1.428, allocations: 329.8 kB / 1.412 GB, free: 15.95 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 9.714e-05/1.428, allocations: 119.7 kB / 1.412 GB, free: 15.82 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.962e-05/1.428, allocations: 7.984 kB / 1.412 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001833/1.428, allocations: 19.94 kB / 1.412 GB, free: 15.79 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.461e-05/1.428, allocations: 11.98 kB / 1.412 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.228e-05/1.428, allocations: 7.75 kB / 1.412 GB, free: 15.78 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001093/1.428, allocations: 145.6 kB / 1.412 GB, free: 15.66 MB / 0.8386 GB Notification: Performance of sort global known variables: time 5.01e-07/1.428, allocations: 4 kB / 1.412 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005359/1.429, allocations: 139.4 kB / 1.413 GB, free: 15.52 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 17 * 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.0001296/1.429, allocations: 99.19 kB / 1.413 GB, free: 15.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0004703/1.429, allocations: 278.1 kB / 1.413 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/1.429, allocations: 320 / 1.413 GB, free: 15.21 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002224/1.43, allocations: 189.2 kB / 1.413 GB, free: 15.04 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003768/1.43, allocations: 59.81 kB / 1.413 GB, free: 14.99 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006143/1.431, allocations: 371.4 kB / 1.413 GB, free: 14.62 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003845/1.431, allocations: 0.8071 MB / 1.414 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0002655/1.431, allocations: 73.98 kB / 1.414 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.835e-05/1.431, allocations: 23.44 kB / 1.414 GB, free: 13.71 MB / 0.8386 GB Notification: Performance of SimCode: time 3.2e-07/1.431, allocations: 0 / 1.414 GB, free: 13.71 MB / 0.8386 GB Notification: Performance of Templates: time 0.00596/1.437, allocations: 2.98 MB / 1.417 GB, free: 10.77 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","../files/Buildings_9_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches