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.472/1.472, allocations: 249.5 MB / 257 MB, free: 6.973 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001045/0.001045, allocations: 183.4 kB / 316.3 MB, free: 3.211 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.6/1.6, allocations: 205.3 MB / 0.5671 GB, free: 15.84 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.0009833/0.0009834, allocations: 88.97 kB / 0.6714 GB, free: 4.957 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.742e-05/1.756e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2004, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7499/0.9504, allocations: 159.8 MB / 1.041 GB, free: 12.16 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002426/0.9507, allocations: 93.28 kB / 1.041 GB, free: 12.11 MB / 0.6667 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.04425/0.9949, allocations: 19.28 MB / 1.06 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.122e-06/0.995, allocations: 0 / 1.06 GB, free: 12.42 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.181e-05/0.995, allocations: 12 kB / 1.06 GB, free: 12.41 MB / 0.6823 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.0008813/0.9959, allocations: 0.5845 MB / 1.061 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.9959, allocations: 8.031 kB / 1.061 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006928/0.9966, allocations: 103.4 kB / 1.061 GB, free: 11.69 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003513/0.997, allocations: 297.5 kB / 1.061 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.997, allocations: 12 kB / 1.061 GB, free: 11.37 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.567e-05/0.9971, allocations: 16 kB / 1.061 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004245/0.9975, allocations: 279.3 kB / 1.061 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005401/0.998, allocations: 403.3 kB / 1.062 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.9981, allocations: 4 kB / 1.062 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.355e-05/0.9981, allocations: 7.984 kB / 1.062 GB, free: 10.83 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.92e-05/0.9982, allocations: 32.2 kB / 1.062 GB, free: 10.8 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001894/1, allocations: 1.99 MB / 1.064 GB, free: 8.797 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003937/1, allocations: 175.2 kB / 1.064 GB, free: 8.664 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002444/1.001, allocations: 130.2 kB / 1.064 GB, free: 8.566 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/1.001, allocations: 4 kB / 1.064 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/1.001, allocations: 38.48 kB / 1.064 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/1.001, allocations: 0 / 1.064 GB, free: 8.52 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0003941/1.001, allocations: 178 kB / 1.064 GB, free: 8.367 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.538e-05/1.001, allocations: 51.41 kB / 1.064 GB, free: 8.305 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001829/1.001, allocations: 198 kB / 1.065 GB, free: 8.129 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.083e-05/1.001, allocations: 29.64 kB / 1.065 GB, free: 8.094 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000105/1.002, allocations: 211.6 kB / 1.065 GB, free: 7.91 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.751e-05/1.002, allocations: 69.66 kB / 1.065 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.152e-05/1.002, allocations: 0 / 1.065 GB, free: 7.852 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001094/1.002, allocations: 333.2 kB / 1.065 GB, free: 7.523 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-05/1.002, allocations: 57.48 kB / 1.065 GB, free: 7.488 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001863/1.002, allocations: 182.2 kB / 1.065 GB, free: 7.289 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/1.002, allocations: 92.08 kB / 1.065 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/1.002, allocations: 4 kB / 1.065 GB, free: 7.219 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004134/1.003, allocations: 265.5 kB / 1.066 GB, free: 6.996 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004898/1.003, allocations: 1.4 MB / 1.067 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/1.003, allocations: 0 / 1.067 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001626/1.003, allocations: 32.16 kB / 1.067 GB, free: 5.48 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002699/1.004, allocations: 67.91 kB / 1.067 GB, free: 5.414 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003533/1.004, allocations: 0.5543 MB / 1.068 GB, free: 4.848 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/1.004, allocations: 35.73 kB / 1.068 GB, free: 4.812 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.149e-05/1.004, allocations: 11.94 kB / 1.068 GB, free: 4.801 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 8.576e-06/1.004, allocations: 4.625 kB / 1.068 GB, free: 4.797 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0002785/1.005, allocations: 201.1 kB / 1.068 GB, free: 4.641 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.254e-06/1.005, allocations: 4 kB / 1.068 GB, free: 4.637 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.322e-06/1.005, allocations: 8 kB / 1.068 GB, free: 4.629 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/1.005, allocations: 80.23 kB / 1.068 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/1.005, allocations: 7.938 kB / 1.068 GB, free: 4.547 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001909/1.005, allocations: 31.83 kB / 1.068 GB, free: 4.516 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.631e-05/1.005, allocations: 8 kB / 1.068 GB, free: 4.508 MB / 0.6823 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 9.53e-05/1.005, allocations: 119.7 kB / 1.068 GB, free: 4.387 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.487e-05/1.005, allocations: 23.72 kB / 1.068 GB, free: 4.363 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.37e-05/1.005, allocations: 28.89 kB / 1.068 GB, free: 4.348 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/1.005, allocations: 4 kB / 1.068 GB, free: 4.344 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/1.005, allocations: 0 / 1.068 GB, free: 4.344 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/1.005, allocations: 3.984 kB / 1.068 GB, free: 4.34 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007821/1.006, allocations: 0.6347 MB / 1.069 GB, free: 3.734 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/1.006, allocations: 4.062 kB / 1.069 GB, free: 3.73 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001973/1.006, allocations: 47.22 kB / 1.069 GB, free: 3.688 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.692e-05/1.006, allocations: 23.97 kB / 1.069 GB, free: 3.664 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.491e-05/1.006, allocations: 4 kB / 1.069 GB, free: 3.66 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008441/1.007, allocations: 1.271 MB / 1.07 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/1.007, allocations: 4.031 kB / 1.07 GB, free: 2.32 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003453/1.008, allocations: 322.1 kB / 1.071 GB, free: 2.008 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 9.284e-05/1.008, allocations: 119.6 kB / 1.071 GB, free: 1.879 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.687e-05/1.008, allocations: 4 kB / 1.071 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001826/1.008, allocations: 23.94 kB / 1.071 GB, free: 1.852 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/1.008, allocations: 23.59 kB / 1.071 GB, free: 1.832 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.388e-05/1.008, allocations: 4 kB / 1.071 GB, free: 1.828 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001094/1.008, allocations: 149.2 kB / 1.071 GB, free: 1.711 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.6e-07/1.008, allocations: 0 / 1.071 GB, free: 1.711 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0005347/1.009, allocations: 135.5 kB / 1.071 GB, free: 1.578 MB / 0.6823 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.0001331/1.009, allocations: 99.25 kB / 1.071 GB, free: 1.469 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004933/1.009, allocations: 290.5 kB / 1.071 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/1.009, allocations: 0 / 1.071 GB, free: 1.25 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.00022/1.01, allocations: 179.7 kB / 1.071 GB, free: 1.086 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/1.01, allocations: 57.64 kB / 1.072 GB, free: 1.043 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006239/1.011, allocations: 366.6 kB / 1.072 GB, free: 0.6875 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/1.011, allocations: 0.8108 MB / 1.073 GB, free: 15.86 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002542/1.011, allocations: 70 kB / 1.073 GB, free: 15.79 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.968e-05/1.011, allocations: 19.44 kB / 1.073 GB, free: 15.77 MB / 0.698 GB Notification: Performance of SimCode: time 2.51e-07/1.011, allocations: 0 / 1.073 GB, free: 15.77 MB / 0.698 GB Notification: Performance of Templates: time 0.00605/1.017, allocations: 2.992 MB / 1.076 GB, free: 12.82 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