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.379/2.379, allocations: 390.3 MB / 405.3 MB, free: 13.47 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.001147/0.001147, allocations: 185.8 kB / 498.1 MB, free: 5.73 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.69/1.69, allocations: 223.2 MB / 0.7948 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009432/0.0009432, allocations: 98.58 kB / 0.9346 GB, free: 6.219 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003975/0.0003975, allocations: 6.938 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3302/0.3306, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2119/0.5426, allocations: 177.5 MB / 1.396 GB, free: 0.6289 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.5429, allocations: 91.95 kB / 1.396 GB, free: 0.5391 MB / 0.8855 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.05631/0.5992, allocations: 23.91 MB / 1.42 GB, free: 8.309 MB / 0.9167 GB Notification: Performance of FrontEnd: time 3.707e-06/0.5993, allocations: 0 / 1.42 GB, free: 8.309 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.022e-05/0.5993, allocations: 15.94 kB / 1.42 GB, free: 8.293 MB / 0.9167 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.001299/0.6006, allocations: 0.6083 MB / 1.42 GB, free: 7.637 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/0.6007, allocations: 12.03 kB / 1.42 GB, free: 7.625 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008364/0.6015, allocations: 103.4 kB / 1.42 GB, free: 7.523 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.602, allocations: 290.5 kB / 1.421 GB, free: 7.199 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.568e-05/0.602, allocations: 20.66 kB / 1.421 GB, free: 7.18 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.591e-05/0.6021, allocations: 31.98 kB / 1.421 GB, free: 7.148 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008398/0.603, allocations: 481.8 kB / 1.421 GB, free: 6.641 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.467e-05/0.603, allocations: 4 kB / 1.421 GB, free: 6.637 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.697e-05/0.603, allocations: 8 kB / 1.421 GB, free: 6.629 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.976e-05/0.6031, allocations: 40.62 kB / 1.421 GB, free: 6.59 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007565/0.6038, allocations: 394.2 kB / 1.422 GB, free: 6.207 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002275/0.6061, allocations: 2.052 MB / 1.424 GB, free: 3.953 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005933/0.6067, allocations: 230.7 kB / 1.424 GB, free: 3.719 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 2.59e-05/0.6068, allocations: 4 kB / 1.424 GB, free: 3.715 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.596e-05/0.6068, allocations: 38.5 kB / 1.424 GB, free: 3.668 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=18): time 1.924e-06/0.6068, allocations: 0 / 1.424 GB, free: 3.668 MB / 0.9167 GB Notification: Performance of matching and sorting (n=18): time 0.0011/0.6079, allocations: 461.2 kB / 1.424 GB, free: 3.191 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.608, allocations: 59.36 kB / 1.424 GB, free: 3.121 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.6082, allocations: 229.8 kB / 1.425 GB, free: 2.895 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.567e-05/0.6083, allocations: 29.7 kB / 1.425 GB, free: 2.859 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001387/0.6084, allocations: 215.7 kB / 1.425 GB, free: 2.645 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 5.993e-05/0.6085, allocations: 74.97 kB / 1.425 GB, free: 2.57 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.215e-05/0.6085, allocations: 4 kB / 1.425 GB, free: 2.566 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.00012/0.6086, allocations: 330.8 kB / 1.425 GB, free: 2.234 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00025/0.6089, allocations: 104.5 kB / 1.425 GB, free: 2.133 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003102/0.6092, allocations: 211.4 kB / 1.425 GB, free: 1.879 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000292/0.6095, allocations: 135.9 kB / 1.426 GB, free: 1.746 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.6095, allocations: 0 / 1.426 GB, free: 1.746 MB / 0.9167 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0007682/0.6103, allocations: 382.8 kB / 1.426 GB, free: 1.363 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.549/1.159, allocations: 1.31 MB / 1.427 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/1.159, allocations: 5.062 kB / 1.427 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002718/1.16, allocations: 29.92 kB / 1.427 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003969/1.16, allocations: 76.03 kB / 1.427 GB, free: 188.2 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003046/1.16, allocations: 0.5492 MB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000319/1.161, allocations: 48.25 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.642e-05/1.161, allocations: 17.52 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 9.388e-06/1.161, allocations: 4.5 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006144/1.161, allocations: 306.9 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/1.161, allocations: 2.75 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.473e-06/1.161, allocations: 6.219 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002777/1.162, allocations: 77.7 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/1.162, allocations: 9.156 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/1.162, allocations: 43.19 kB / 1.428 GB, free: 187.7 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.737e-05/1.162, allocations: 14.16 kB / 1.428 GB, free: 187.7 MB / 0.9167 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.000188/1.162, allocations: 243.8 kB / 1.429 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/1.162, allocations: 27.86 kB / 1.429 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.911e-05/1.162, allocations: 35.92 kB / 1.429 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/1.162, allocations: 4.359 kB / 1.429 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.162, allocations: 3.781 kB / 1.429 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/1.162, allocations: 1.594 kB / 1.429 GB, free: 187.5 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003322/1.163, allocations: 351.2 kB / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/1.163, allocations: 0 / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000212/1.163, allocations: 47.39 kB / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.95e-05/1.163, allocations: 25.61 kB / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/1.163, allocations: 6.062 kB / 1.429 GB, free: 187.3 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007308/1.164, allocations: 1.33 MB / 1.43 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.492e-06/1.164, allocations: 2.844 kB / 1.43 GB, free: 186.1 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006335/1.164, allocations: 377.5 kB / 1.431 GB, free: 185.9 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/1.164, allocations: 118.1 kB / 1.431 GB, free: 185.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.678e-05/1.165, allocations: 6.594 kB / 1.431 GB, free: 185.8 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001913/1.165, allocations: 21.55 kB / 1.431 GB, free: 185.8 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/1.165, allocations: 15.28 kB / 1.431 GB, free: 185.8 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.346e-05/1.165, allocations: 4.797 kB / 1.431 GB, free: 185.8 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001596/1.165, allocations: 184.8 kB / 1.431 GB, free: 185.7 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.21e-07/1.165, allocations: 1.562 kB / 1.431 GB, free: 185.7 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0005503/1.166, allocations: 144.8 kB / 1.431 GB, free: 185.7 MB / 0.9167 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.0001275/1.166, allocations: 112.5 kB / 1.431 GB, free: 185.6 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0009521/1.167, allocations: 418.9 kB / 1.432 GB, free: 185.6 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/1.167, allocations: 0.8438 kB / 1.432 GB, free: 185.6 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003542/1.167, allocations: 230.7 kB / 1.432 GB, free: 185.5 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000386/1.167, allocations: 67.84 kB / 1.432 GB, free: 185.5 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009267/1.168, allocations: 0.6436 MB / 1.433 GB, free: 185.2 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002877/1.169, allocations: 0.8094 MB / 1.433 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002401/1.169, allocations: 71.83 kB / 1.433 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.193e-05/1.169, allocations: 19.91 kB / 1.434 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of SimCode: time 2e-07/1.169, allocations: 2.969 kB / 1.434 GB, free: 184.5 MB / 0.9167 GB Notification: Performance of Templates: time 0.007053/1.176, allocations: 2.957 MB / 1.436 GB, free: 184.3 MB / 0.9167 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