Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.395/2.395, allocations: 393.5 MB / 408.4 MB, free: 11 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.001241/0.001241, allocations: 179.9 kB / 0.4902 GB, free: 2.297 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.741/1.741, allocations: 223.1 MB / 0.7992 GB, free: 14.68 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.001085/0.001085, allocations: 100.7 kB / 0.9396 GB, free: 1.918 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003703/0.0003702, allocations: 10.59 kB / 1.09 GB, free: 216.4 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2568, allocations: 143 MB / 1.229 GB, free: 105.8 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.207/0.4639, allocations: 178.3 MB / 1.403 GB, free: 7.297 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002971/0.4643, allocations: 95.94 kB / 1.403 GB, free: 7.203 MB / 0.9011 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.6623/1.127, allocations: 23.89 MB / 1.427 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.775e-06/1.127, allocations: 0.9375 kB / 1.427 GB, free: 182.5 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.898e-05/1.127, allocations: 13.28 kB / 1.427 GB, free: 182.5 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.001624/1.128, allocations: 0.6271 MB / 1.427 GB, free: 182 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.866e-05/1.128, allocations: 8.281 kB / 1.427 GB, free: 182 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001285/1.13, allocations: 100.4 kB / 1.427 GB, free: 182 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006282/1.13, allocations: 298.2 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.541e-05/1.13, allocations: 19.8 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.343e-05/1.131, allocations: 28.62 kB / 1.428 GB, free: 181.8 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0013/1.132, allocations: 486.8 kB / 1.428 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/1.132, allocations: 3.844 kB / 1.428 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.244e-05/1.132, allocations: 12.3 kB / 1.428 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.551e-05/1.132, allocations: 32.25 kB / 1.428 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001215/1.133, allocations: 383.2 kB / 1.429 GB, free: 181.7 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003214/1.137, allocations: 2.06 MB / 1.431 GB, free: 180.2 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009736/1.138, allocations: 222 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/1.138, allocations: 3.859 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.108e-05/1.138, allocations: 39.98 kB / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=18): time 3.857e-06/1.138, allocations: 0 / 1.431 GB, free: 180.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=18): time 0.001767/1.139, allocations: 464.4 kB / 1.431 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/1.139, allocations: 53.19 kB / 1.431 GB, free: 179.9 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004711/1.14, allocations: 231 kB / 1.432 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 3.51e-05/1.14, allocations: 29.33 kB / 1.432 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002108/1.14, allocations: 214.5 kB / 1.432 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 9.287e-05/1.14, allocations: 69.12 kB / 1.432 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.426e-05/1.14, allocations: 6.438 kB / 1.432 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001205/1.141, allocations: 334.9 kB / 1.432 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004678/1.141, allocations: 103.7 kB / 1.432 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005882/1.142, allocations: 213.2 kB / 1.433 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005786/1.142, allocations: 130.2 kB / 1.433 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.806e-06/1.142, allocations: 7.078 kB / 1.433 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001414/1.144, allocations: 380.5 kB / 1.433 GB, free: 179 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003411/1.144, allocations: 1.31 MB / 1.434 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/1.144, allocations: 5.531 kB / 1.434 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/1.144, allocations: 35.33 kB / 1.434 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005404/1.145, allocations: 73.25 kB / 1.434 GB, free: 177.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005123/1.145, allocations: 0.5557 MB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004925/1.146, allocations: 49.05 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.136e-05/1.146, allocations: 11.92 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/1.146, allocations: 3.438 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001056/1.147, allocations: 308.7 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/1.147, allocations: 5.203 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/1.147, allocations: 5.219 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005322/1.148, allocations: 79.25 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.344e-05/1.148, allocations: 5.797 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/1.148, allocations: 39.91 kB / 1.435 GB, free: 177.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.917e-05/1.148, allocations: 13.78 kB / 1.435 GB, free: 177.1 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.0003484/1.149, allocations: 249.4 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001098/1.149, allocations: 32.95 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001256/1.149, allocations: 31.52 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/1.149, allocations: 1.875 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/1.149, allocations: 2.062 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/1.149, allocations: 0.7031 kB / 1.436 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007821/1.15, allocations: 354 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.424e-06/1.15, allocations: 1.812 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003617/1.15, allocations: 46.17 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001973/1.15, allocations: 28.95 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.714e-05/1.15, allocations: 5.875 kB / 1.436 GB, free: 176.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001381/1.152, allocations: 1.326 MB / 1.437 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.999e-06/1.152, allocations: 4.094 kB / 1.437 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001078/1.153, allocations: 383.8 kB / 1.438 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001887/1.153, allocations: 121.2 kB / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.129e-05/1.153, allocations: 2.562 kB / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003297/1.154, allocations: 19.41 kB / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.753e-05/1.154, allocations: 20.19 kB / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.144e-05/1.154, allocations: 6.406 kB / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0002955/1.154, allocations: 185.5 kB / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of sort global known variables: time 3.51e-07/1.154, allocations: 0 / 1.438 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.00105/1.155, allocations: 141.3 kB / 1.438 GB, free: 175 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.0001526/1.155, allocations: 105.3 kB / 1.438 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.001725/1.157, allocations: 423.7 kB / 1.439 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/1.157, allocations: 384 / 1.439 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0005979/1.158, allocations: 231.4 kB / 1.439 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000656/1.158, allocations: 68.23 kB / 1.439 GB, free: 174.8 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00144/1.16, allocations: 0.6494 MB / 1.44 GB, free: 174.5 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003961/1.16, allocations: 0.8072 MB / 1.441 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0004847/1.161, allocations: 68.44 kB / 1.441 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.605e-05/1.161, allocations: 24.67 kB / 1.441 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of SimCode: time 5.01e-07/1.161, allocations: 3.469 kB / 1.441 GB, free: 173.7 MB / 0.9167 GB Notification: Performance of Templates: time 0.01275/1.174, allocations: 2.961 MB / 1.444 GB, free: 173.6 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_VariableLoad.csv","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.VariableLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches