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.424/1.424, allocations: 249.3 MB / 261.8 MB, free: 5.848 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.001242/0.001242, allocations: 180.9 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.452/1.452, allocations: 205.2 MB / 0.572 GB, free: 10.68 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.0009961/0.0009957, allocations: 82.55 kB / 0.6764 GB, free: 15.66 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.097e-05/4.121e-05, allocations: 0 / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2051/0.2052, allocations: 106.3 MB / 0.8918 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7209/0.9262, allocations: 159.5 MB / 1.048 GB, free: 9.41 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000246/0.9265, allocations: 86.2 kB / 1.048 GB, free: 9.363 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.04334/0.9698, allocations: 19.36 MB / 1.067 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.372e-06/0.9699, allocations: 3.938 kB / 1.067 GB, free: 9.449 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 2.013e-05/0.9699, allocations: 8 kB / 1.067 GB, free: 9.441 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.00088/0.9708, allocations: 0.5874 MB / 1.067 GB, free: 8.832 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.715e-05/0.9708, allocations: 12.03 kB / 1.067 GB, free: 8.82 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007173/0.9716, allocations: 99.41 kB / 1.067 GB, free: 8.723 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003901/0.972, allocations: 296.1 kB / 1.068 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.972, allocations: 22.78 kB / 1.068 GB, free: 8.402 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.115e-05/0.972, allocations: 31.05 kB / 1.068 GB, free: 8.379 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006104/0.9727, allocations: 447.2 kB / 1.068 GB, free: 8.02 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.023e-05/0.9727, allocations: 0 / 1.068 GB, free: 8.02 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.523e-05/0.9727, allocations: 11.38 kB / 1.068 GB, free: 8.016 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.765e-05/0.9728, allocations: 35.45 kB / 1.068 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004502/0.9732, allocations: 310.1 kB / 1.068 GB, free: 7.781 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00198/0.9752, allocations: 2.059 MB / 1.07 GB, free: 5.719 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004309/0.9757, allocations: 186 kB / 1.071 GB, free: 5.574 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002577/0.9759, allocations: 131.3 kB / 1.071 GB, free: 5.477 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.487e-05/0.976, allocations: 8 kB / 1.071 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.333e-05/0.976, allocations: 34.38 kB / 1.071 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=18): time 2.415e-06/0.976, allocations: 0 / 1.071 GB, free: 5.43 MB / 0.6823 GB Notification: Performance of matching and sorting (n=18): time 0.0004111/0.9764, allocations: 205.4 kB / 1.071 GB, free: 5.258 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.352e-05/0.9765, allocations: 51.41 kB / 1.071 GB, free: 5.195 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.9767, allocations: 238.2 kB / 1.071 GB, free: 5 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.9767, allocations: 29.7 kB / 1.071 GB, free: 4.965 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.9768, allocations: 210 kB / 1.071 GB, free: 4.785 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.559e-05/0.9769, allocations: 65.89 kB / 1.071 GB, free: 4.727 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.9769, allocations: 6.625 kB / 1.071 GB, free: 4.723 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001122/0.977, allocations: 333 kB / 1.072 GB, free: 4.398 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.9772, allocations: 65.23 kB / 1.072 GB, free: 4.355 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001666/0.9773, allocations: 175.5 kB / 1.072 GB, free: 4.16 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001466/0.9775, allocations: 99.98 kB / 1.072 GB, free: 4.09 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/0.9775, allocations: 8 kB / 1.072 GB, free: 4.082 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004438/0.9779, allocations: 290.5 kB / 1.072 GB, free: 3.844 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004584/0.9784, allocations: 1.405 MB / 1.074 GB, free: 2.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.446e-06/0.9784, allocations: 4 kB / 1.074 GB, free: 2.352 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001669/0.9786, allocations: 28.66 kB / 1.074 GB, free: 2.324 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002632/0.9789, allocations: 71.89 kB / 1.074 GB, free: 2.254 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004095/0.9793, allocations: 0.5555 MB / 1.074 GB, free: 1.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002517/0.9796, allocations: 50.55 kB / 1.074 GB, free: 1.641 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.127e-05/0.9796, allocations: 8 kB / 1.074 GB, free: 1.633 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 7.143e-06/0.9796, allocations: 4 kB / 1.074 GB, free: 1.629 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003236/0.9799, allocations: 236.6 kB / 1.075 GB, free: 1.453 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.328e-06/0.9799, allocations: 4 kB / 1.075 GB, free: 1.449 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.724e-06/0.98, allocations: 11.92 kB / 1.075 GB, free: 1.438 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002642/0.9802, allocations: 83.86 kB / 1.075 GB, free: 1.359 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/0.9802, allocations: 4 kB / 1.075 GB, free: 1.355 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.9805, allocations: 39.27 kB / 1.075 GB, free: 1.32 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.644e-05/0.9805, allocations: 11.69 kB / 1.075 GB, free: 1.312 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.953e-05/0.9806, allocations: 123.6 kB / 1.075 GB, free: 1.191 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.9806, allocations: 31.7 kB / 1.075 GB, free: 1.16 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.73e-05/0.9807, allocations: 26.34 kB / 1.075 GB, free: 1.148 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.9807, allocations: 4 kB / 1.075 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.9807, allocations: 0 / 1.075 GB, free: 1.145 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.593e-06/0.9807, allocations: 3.984 kB / 1.075 GB, free: 1.141 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008618/0.9816, allocations: 0.7083 MB / 1.076 GB, free: 476 kB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.536e-06/0.9816, allocations: 4 kB / 1.076 GB, free: 472 kB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001877/0.9818, allocations: 47.84 kB / 1.076 GB, free: 424 kB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.632e-05/0.9819, allocations: 24.41 kB / 1.076 GB, free: 400 kB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.516e-05/0.9819, allocations: 7.312 kB / 1.076 GB, free: 396 kB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000921/0.9829, allocations: 1.325 MB / 1.077 GB, free: 14.98 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.9829, allocations: 4.156 kB / 1.077 GB, free: 14.97 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003741/0.9833, allocations: 328 kB / 1.077 GB, free: 14.66 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001045/0.9834, allocations: 128 kB / 1.078 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.451e-05/0.9834, allocations: 7 kB / 1.078 GB, free: 14.52 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001874/0.9836, allocations: 27.08 kB / 1.078 GB, free: 14.5 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.9837, allocations: 11.92 kB / 1.078 GB, free: 14.48 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.9837, allocations: 7.812 kB / 1.078 GB, free: 14.48 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001551/0.9839, allocations: 182.2 kB / 1.078 GB, free: 14.32 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9839, allocations: 0 / 1.078 GB, free: 14.32 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004961/0.9844, allocations: 149.8 kB / 1.078 GB, free: 14.19 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 (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.0001418/0.9845, allocations: 98.69 kB / 1.078 GB, free: 14.09 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0005395/0.9851, allocations: 321.9 kB / 1.078 GB, free: 13.85 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.9851, allocations: 0 / 1.078 GB, free: 13.85 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002381/0.9853, allocations: 192.3 kB / 1.078 GB, free: 13.67 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003726/0.9857, allocations: 60.7 kB / 1.079 GB, free: 13.62 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006044/0.9863, allocations: 388.2 kB / 1.079 GB, free: 13.26 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003715/0.9867, allocations: 0.8089 MB / 1.08 GB, free: 12.43 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002769/0.987, allocations: 85.97 kB / 1.08 GB, free: 12.35 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.292e-05/0.987, allocations: 23.38 kB / 1.08 GB, free: 12.33 MB / 0.698 GB Notification: Performance of SimCode: time 6.41e-07/0.9871, allocations: 0 / 1.08 GB, free: 12.33 MB / 0.698 GB Notification: Performance of Templates: time 0.006575/0.9936, allocations: 3.304 MB / 1.083 GB, free: 9.062 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