Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.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.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") translateModel(Buildings.Electrical.DC.Loads.Examples.LinearizedLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|error|sen_nlin.I|sen_lin.I|sen_nlin.V|sen_lin.V|sen_nlin.P|sen_lin.P",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.432/1.432, allocations: 249.5 MB / 257 MB, free: 6.984 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.00115/0.00115, allocations: 176.9 kB / 316.3 MB, free: 3.238 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.415/1.415, allocations: 205.3 MB / 0.5671 GB, free: 15.86 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.0008166/0.0008165, allocations: 87.89 kB / 0.6714 GB, free: 4.984 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.538e-05/1.541e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1821/0.1821, allocations: 106.3 MB / 0.8852 GB, free: 12.28 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7341/0.9163, allocations: 160 MB / 1.042 GB, free: 11.98 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003597/0.9167, allocations: 89.95 kB / 1.042 GB, free: 11.94 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);. [/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);. Notification: Performance of FrontEnd - DAE generated: time 0.04222/0.9589, allocations: 17.68 MB / 1.059 GB, free: 13.39 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.292e-06/0.959, allocations: 0 / 1.059 GB, free: 13.39 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.573e-05/0.959, allocations: 7.938 kB / 1.059 GB, free: 13.38 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001114/0.9601, allocations: 0.6128 MB / 1.059 GB, free: 12.75 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.267e-05/0.9602, allocations: 8.031 kB / 1.059 GB, free: 12.74 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008089/0.961, allocations: 116.1 kB / 1.06 GB, free: 12.62 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005958/0.9616, allocations: 325.4 kB / 1.06 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.84e-05/0.9617, allocations: 42.48 kB / 1.06 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.655e-05/0.9617, allocations: 20 kB / 1.06 GB, free: 12.23 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005165/0.9622, allocations: 317.6 kB / 1.06 GB, free: 12.03 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006211/0.9629, allocations: 431.9 kB / 1.061 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.9629, allocations: 3.938 kB / 1.061 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.378e-05/0.9629, allocations: 4 kB / 1.061 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.457e-05/0.963, allocations: 24.77 kB / 1.061 GB, free: 11.65 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002361/0.9654, allocations: 2.139 MB / 1.063 GB, free: 9.516 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006343/0.966, allocations: 241.7 kB / 1.063 GB, free: 9.34 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/0.9663, allocations: 137.5 kB / 1.063 GB, free: 9.234 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.9663, allocations: 7.188 kB / 1.063 GB, free: 9.23 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.9664, allocations: 34.56 kB / 1.063 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=19): time 1.954e-06/0.9664, allocations: 0 / 1.063 GB, free: 9.188 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19): time 0.0006037/0.967, allocations: 253.9 kB / 1.063 GB, free: 8.977 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.939e-05/0.967, allocations: 51.41 kB / 1.063 GB, free: 8.914 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.9672, allocations: 183.9 kB / 1.064 GB, free: 8.758 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.9672, allocations: 25.7 kB / 1.064 GB, free: 8.727 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.9673, allocations: 207.9 kB / 1.064 GB, free: 8.543 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.772e-05/0.9674, allocations: 69.94 kB / 1.064 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.201e-05/0.9674, allocations: 0 / 1.064 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001189/0.9675, allocations: 329.7 kB / 1.064 GB, free: 8.156 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001134/0.9677, allocations: 75.16 kB / 1.064 GB, free: 8.109 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.9678, allocations: 157.7 kB / 1.064 GB, free: 7.945 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000143/0.968, allocations: 92.91 kB / 1.065 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.968, allocations: 0 / 1.065 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005898/0.9686, allocations: 310 kB / 1.065 GB, free: 7.621 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003951/0.969, allocations: 0.9671 MB / 1.066 GB, free: 6.598 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.669e-06/0.969, allocations: 4 kB / 1.066 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004256/0.9694, allocations: 93.83 kB / 1.066 GB, free: 6.508 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002256/0.9697, allocations: 55.91 kB / 1.066 GB, free: 6.453 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/0.9717, allocations: 1.971 MB / 1.068 GB, free: 4.441 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002378/0.972, allocations: 23.78 kB / 1.068 GB, free: 4.418 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.279e-05/0.972, allocations: 20.14 kB / 1.068 GB, free: 4.398 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.534e-06/0.972, allocations: 1.562 kB / 1.068 GB, free: 4.398 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000479/0.9725, allocations: 240.3 kB / 1.068 GB, free: 4.215 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.9725, allocations: 4.312 kB / 1.068 GB, free: 4.211 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002429/0.9728, allocations: 83.12 kB / 1.068 GB, free: 4.137 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.973, allocations: 59.91 kB / 1.068 GB, free: 4.078 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001566/0.9746, allocations: 1.428 MB / 1.07 GB, free: 2.625 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002053/0.9748, allocations: 23.83 kB / 1.07 GB, free: 2.602 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.9749, allocations: 11.94 kB / 1.07 GB, free: 2.59 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0001053/0.975, allocations: 113 kB / 1.07 GB, free: 2.473 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.695e-05/0.975, allocations: 23.42 kB / 1.07 GB, free: 2.453 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.623e-05/0.9751, allocations: 20.53 kB / 1.07 GB, free: 2.449 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.9751, allocations: 7.953 kB / 1.07 GB, free: 2.441 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.9751, allocations: 0 / 1.07 GB, free: 2.441 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.309e-05/0.9751, allocations: 3.984 kB / 1.07 GB, free: 2.438 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001106/0.9762, allocations: 0.7249 MB / 1.071 GB, free: 1.758 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.335e-06/0.9763, allocations: 0 / 1.071 GB, free: 1.758 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001507/0.9764, allocations: 27.98 kB / 1.071 GB, free: 1.73 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003229/0.9767, allocations: 99.5 kB / 1.071 GB, free: 1.641 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.488e-05/0.9768, allocations: 4 kB / 1.071 GB, free: 1.637 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002578/0.9794, allocations: 2.688 MB / 1.073 GB, free: 14.85 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.9794, allocations: 4.031 kB / 1.073 GB, free: 14.84 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005816/0.98, allocations: 389.9 kB / 1.074 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000121/0.9801, allocations: 116.4 kB / 1.074 GB, free: 14.35 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.534e-05/0.9801, allocations: 0 / 1.074 GB, free: 14.35 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001689/0.9803, allocations: 11.98 kB / 1.074 GB, free: 14.34 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.551e-05/0.9804, allocations: 19.61 kB / 1.074 GB, free: 14.32 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.384e-05/0.9804, allocations: 11.88 kB / 1.074 GB, free: 14.31 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001194/0.9805, allocations: 137.1 kB / 1.074 GB, free: 14.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9805, allocations: 0 / 1.074 GB, free: 14.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006475/0.9812, allocations: 159.3 kB / 1.074 GB, free: 14.04 MB / 0.698 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 (17): * Single equations (assignments): 15 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001613/0.9814, allocations: 95.25 kB / 1.074 GB, free: 13.94 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001535/0.9829, allocations: 0.5769 MB / 1.075 GB, free: 13.43 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.9829, allocations: 0 / 1.075 GB, free: 13.43 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006879/0.9836, allocations: 336.6 kB / 1.075 GB, free: 13.12 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003351/0.984, allocations: 40.7 kB / 1.075 GB, free: 13.09 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000784/0.9848, allocations: 404.1 kB / 1.076 GB, free: 12.7 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.9852, allocations: 0.8161 MB / 1.076 GB, free: 11.87 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002397/0.9854, allocations: 62.02 kB / 1.076 GB, free: 11.81 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.631e-05/0.9855, allocations: 19.38 kB / 1.076 GB, free: 11.79 MB / 0.698 GB Notification: Performance of SimCode: time 6.81e-07/0.9855, allocations: 0 / 1.076 GB, free: 11.79 MB / 0.698 GB Notification: Performance of Templates: time 0.007828/0.9933, allocations: 3.943 MB / 1.08 GB, free: 7.883 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Loads_Examples_LinearizedLoad.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.LinearizedLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches