Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.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.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource") translateModel(Buildings.Electrical.DC.Sources.Examples.VoltageSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.V|sen.I",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.436/1.436, allocations: 249.3 MB / 261.8 MB, free: 5.824 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.001111/0.001111, allocations: 170.6 kB / 321.3 MB, free: 14.65 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.515/1.515, allocations: 205.2 MB / 0.572 GB, free: 10.69 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.001054/0.001054, allocations: 92.94 kB / 0.6764 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.444e-05/3.457e-05, allocations: 4 kB / 0.7879 GB, free: 97.11 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2058/0.2059, allocations: 106.3 MB / 0.8918 GB, free: 6.676 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7207/0.9266, allocations: 158.8 MB / 1.047 GB, free: 10.04 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002494/0.9269, allocations: 88.45 kB / 1.047 GB, free: 9.996 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.02676/0.9537, allocations: 11.7 MB / 1.058 GB, free: 336 kB / 0.6667 GB Notification: Performance of FrontEnd: time 1.012e-06/0.9537, allocations: 0 / 1.058 GB, free: 336 kB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.737e-05/0.9538, allocations: 7.312 kB / 1.058 GB, free: 332 kB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0006601/0.9544, allocations: 0.4912 MB / 1.059 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.9545, allocations: 8.031 kB / 1.059 GB, free: 15.8 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006044/0.9551, allocations: 79.66 kB / 1.059 GB, free: 15.72 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.9555, allocations: 248.1 kB / 1.059 GB, free: 15.45 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.177e-05/0.9555, allocations: 15.48 kB / 1.059 GB, free: 15.44 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.581e-05/0.9555, allocations: 25.12 kB / 1.059 GB, free: 15.43 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004591/0.956, allocations: 296.1 kB / 1.06 GB, free: 15.19 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.956, allocations: 0 / 1.06 GB, free: 15.19 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.9561, allocations: 10.06 kB / 1.06 GB, free: 15.18 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.088e-05/0.9561, allocations: 16.42 kB / 1.06 GB, free: 15.17 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003036/0.9564, allocations: 207.4 kB / 1.06 GB, free: 15.03 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001436/0.9579, allocations: 1.49 MB / 1.061 GB, free: 13.5 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003672/0.9582, allocations: 193 kB / 1.061 GB, free: 13.31 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.805e-05/0.9583, allocations: 40.41 kB / 1.061 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.208e-05/0.9583, allocations: 0 / 1.061 GB, free: 13.28 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.803e-05/0.9584, allocations: 38.5 kB / 1.061 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=8): time 1.162e-06/0.9584, allocations: 0 / 1.061 GB, free: 13.23 MB / 0.6823 GB Notification: Performance of matching and sorting (n=8): time 0.000281/0.9587, allocations: 119.4 kB / 1.062 GB, free: 13.12 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.9587, allocations: 51.41 kB / 1.062 GB, free: 13.06 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001757/0.9589, allocations: 190 kB / 1.062 GB, free: 12.89 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.821e-05/0.9589, allocations: 25.7 kB / 1.062 GB, free: 12.86 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.883e-05/0.959, allocations: 175.1 kB / 1.062 GB, free: 12.71 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.161e-05/0.959, allocations: 27.16 kB / 1.062 GB, free: 12.69 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.847e-06/0.9591, allocations: 7.188 kB / 1.062 GB, free: 12.68 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.9592, allocations: 322.6 kB / 1.062 GB, free: 12.36 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.286e-05/0.9592, allocations: 41.19 kB / 1.062 GB, free: 12.34 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.932e-05/0.9593, allocations: 105.2 kB / 1.062 GB, free: 12.22 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.634e-05/0.9594, allocations: 54.09 kB / 1.063 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.9595, allocations: 3.938 kB / 1.063 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002991/0.9598, allocations: 197.6 kB / 1.063 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.9598, allocations: 9.047 kB / 1.063 GB, free: 12 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.9598, allocations: 4 kB / 1.063 GB, free: 12 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001523/0.96, allocations: 24.38 kB / 1.063 GB, free: 11.97 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.9601, allocations: 35.98 kB / 1.063 GB, free: 11.94 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009965/0.9611, allocations: 1.313 MB / 1.064 GB, free: 10.54 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.9613, allocations: 23.12 kB / 1.064 GB, free: 10.52 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.403e-05/0.9613, allocations: 11.31 kB / 1.064 GB, free: 10.52 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.461e-05/0.9614, allocations: 112.2 kB / 1.064 GB, free: 10.4 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.882e-05/0.9614, allocations: 19.77 kB / 1.064 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.942e-05/0.9615, allocations: 24.69 kB / 1.064 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.9615, allocations: 0 / 1.064 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.9615, allocations: 4.094 kB / 1.064 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.9615, allocations: 4 kB / 1.064 GB, free: 10.35 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005116/0.962, allocations: 464.7 kB / 1.065 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.962, allocations: 0 / 1.065 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.898e-05/0.9621, allocations: 15.92 kB / 1.065 GB, free: 9.887 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.238e-05/0.9622, allocations: 20.84 kB / 1.065 GB, free: 9.863 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.049e-05/0.9622, allocations: 7.438 kB / 1.065 GB, free: 9.859 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008413/0.9631, allocations: 1.305 MB / 1.066 GB, free: 8.473 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.9631, allocations: 4.156 kB / 1.066 GB, free: 8.469 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002304/0.9633, allocations: 223.1 kB / 1.066 GB, free: 8.254 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.454e-05/0.9634, allocations: 100.4 kB / 1.066 GB, free: 8.141 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.9634, allocations: 0 / 1.066 GB, free: 8.141 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001233/0.9636, allocations: 4 kB / 1.066 GB, free: 8.137 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.121e-05/0.9636, allocations: 11.67 kB / 1.066 GB, free: 8.129 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.9636, allocations: 8 kB / 1.066 GB, free: 8.121 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001258/0.9638, allocations: 144.8 kB / 1.067 GB, free: 8 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9638, allocations: 96 / 1.067 GB, free: 8 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003165/0.9641, allocations: 62.61 kB / 1.067 GB, free: 7.941 MB / 0.6823 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001117/0.9642, allocations: 98.69 kB / 1.067 GB, free: 7.84 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.000369/0.9646, allocations: 229.3 kB / 1.067 GB, free: 7.629 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.9646, allocations: 0 / 1.067 GB, free: 7.629 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001719/0.9648, allocations: 155.8 kB / 1.067 GB, free: 7.477 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.9651, allocations: 35.41 kB / 1.067 GB, free: 7.449 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004167/0.9655, allocations: 239.8 kB / 1.067 GB, free: 7.223 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003066/0.9658, allocations: 0.7589 MB / 1.068 GB, free: 6.445 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.000103/0.9659, allocations: 25.31 kB / 1.068 GB, free: 6.418 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.451e-05/0.966, allocations: 19.42 kB / 1.068 GB, free: 6.398 MB / 0.6823 GB Notification: Performance of SimCode: time 4.81e-07/0.966, allocations: 0 / 1.068 GB, free: 6.398 MB / 0.6823 GB Notification: Performance of Templates: time 0.004357/0.9703, allocations: 1.758 MB / 1.07 GB, free: 4.668 MB / 0.6823 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches