Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.183/2.183, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.001234/0.001233, allocations: 187.2 kB / 498.1 MB, free: 5.688 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.683/1.683, allocations: 223.2 MB / 0.7948 GB, free: 17.88 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.001058/0.001058, allocations: 102.3 kB / 0.9346 GB, free: 6.18 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004777/0.0004777, allocations: 10.38 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3769, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2492/0.6261, allocations: 176.8 MB / 1.396 GB, free: 1.211 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003683/0.6266, allocations: 91.94 kB / 1.396 GB, free: 1.121 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.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 9.1.1-maint.9.1.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.03527/0.6619, allocations: 15.36 MB / 1.411 GB, free: 1.539 MB / 0.9011 GB Notification: Performance of FrontEnd: time 2.986e-06/0.6619, allocations: 0 / 1.411 GB, free: 1.539 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 2.403e-05/0.6619, allocations: 7.938 kB / 1.411 GB, free: 1.531 MB / 0.9011 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.0008344/0.6628, allocations: 0.5106 MB / 1.411 GB, free: 0.9727 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.6628, allocations: 8.031 kB / 1.411 GB, free: 0.9648 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006149/0.6635, allocations: 83.64 kB / 1.411 GB, free: 0.8828 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003923/0.6639, allocations: 259.1 kB / 1.411 GB, free: 0.5898 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.6639, allocations: 16.42 kB / 1.411 GB, free: 0.5742 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.904e-05/0.6639, allocations: 20 kB / 1.411 GB, free: 0.5547 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005215/0.6645, allocations: 304.3 kB / 1.412 GB, free: 236 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.6645, allocations: 7.984 kB / 1.412 GB, free: 228 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.032e-05/0.6645, allocations: 8 kB / 1.412 GB, free: 220 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.042e-05/0.6646, allocations: 20.42 kB / 1.412 GB, free: 200 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003791/0.665, allocations: 209.7 kB / 1.412 GB, free: 15.99 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001606/0.6666, allocations: 1.488 MB / 1.413 GB, free: 14.34 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/0.667, allocations: 207.6 kB / 1.414 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.33e-05/0.6671, allocations: 0 / 1.414 GB, free: 14.11 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.88e-05/0.6671, allocations: 34.56 kB / 1.414 GB, free: 14.06 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 1.002e-06/0.6671, allocations: 3.828 kB / 1.414 GB, free: 14.06 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.000599/0.6677, allocations: 267.5 kB / 1.414 GB, free: 13.77 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.6678, allocations: 55.36 kB / 1.414 GB, free: 13.71 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.668, allocations: 184.2 kB / 1.414 GB, free: 13.52 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.96e-05/0.668, allocations: 29.7 kB / 1.414 GB, free: 13.48 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001116/0.6681, allocations: 171.7 kB / 1.414 GB, free: 13.31 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.74e-05/0.6681, allocations: 31.55 kB / 1.414 GB, free: 13.28 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/0.6681, allocations: 8 kB / 1.414 GB, free: 13.27 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001367/0.6683, allocations: 323.1 kB / 1.415 GB, free: 12.95 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.136e-05/0.6684, allocations: 43.97 kB / 1.415 GB, free: 12.91 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.6685, allocations: 108.6 kB / 1.415 GB, free: 12.77 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.6686, allocations: 59.92 kB / 1.415 GB, free: 12.71 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.077e-06/0.6687, allocations: 8 kB / 1.415 GB, free: 12.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003528/0.669, allocations: 213.9 kB / 1.415 GB, free: 12.48 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.23e-05/0.669, allocations: 9.406 kB / 1.415 GB, free: 12.48 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.171e-06/0.6691, allocations: 288 / 1.415 GB, free: 12.48 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001881/0.6693, allocations: 32.84 kB / 1.415 GB, free: 12.44 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001313/0.6694, allocations: 31.92 kB / 1.415 GB, free: 12.41 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001107/0.6705, allocations: 1.319 MB / 1.416 GB, free: 10.96 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001401/0.6707, allocations: 27.77 kB / 1.417 GB, free: 10.93 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.524e-05/0.6707, allocations: 8 kB / 1.417 GB, free: 10.92 MB / 0.9167 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 () * Number of clocked 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 0.0001439/0.6708, allocations: 145.8 kB / 1.417 GB, free: 10.77 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.848e-05/0.6709, allocations: 23.95 kB / 1.417 GB, free: 10.75 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.139e-05/0.6709, allocations: 21.39 kB / 1.417 GB, free: 10.72 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.6709, allocations: 0 / 1.417 GB, free: 10.72 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.98e-06/0.671, allocations: 4.062 kB / 1.417 GB, free: 10.72 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.789e-06/0.671, allocations: 4 kB / 1.417 GB, free: 10.71 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000617/0.6716, allocations: 483.1 kB / 1.417 GB, free: 10.18 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.6716, allocations: 0 / 1.417 GB, free: 10.18 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.292e-05/0.6717, allocations: 12 kB / 1.417 GB, free: 10.17 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.447e-05/0.6718, allocations: 24.84 kB / 1.417 GB, free: 10.14 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.196e-05/0.6718, allocations: 3.984 kB / 1.417 GB, free: 10.14 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009478/0.6727, allocations: 1.315 MB / 1.419 GB, free: 8.695 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.6727, allocations: 0 / 1.419 GB, free: 8.695 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003044/0.6731, allocations: 240.8 kB / 1.419 GB, free: 8.441 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 9.026e-05/0.6732, allocations: 100.8 kB / 1.419 GB, free: 8.324 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.991e-05/0.6732, allocations: 7.938 kB / 1.419 GB, free: 8.316 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.6733, allocations: 11.98 kB / 1.419 GB, free: 8.305 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.828e-05/0.6734, allocations: 4 kB / 1.419 GB, free: 8.301 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.713e-06/0.6734, allocations: 0 / 1.419 GB, free: 8.301 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001343/0.6735, allocations: 149.5 kB / 1.419 GB, free: 8.156 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6735, allocations: 0 / 1.419 GB, free: 8.156 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003288/0.6739, allocations: 63.75 kB / 1.419 GB, free: 8.094 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 (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.0001433/0.674, allocations: 107 kB / 1.419 GB, free: 7.98 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.00048/0.6745, allocations: 227 kB / 1.419 GB, free: 7.746 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.6745, allocations: 4.062 kB / 1.419 GB, free: 7.742 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.000195/0.6747, allocations: 158.7 kB / 1.42 GB, free: 7.574 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.675, allocations: 33.8 kB / 1.42 GB, free: 7.543 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008101/0.6758, allocations: 479.4 kB / 1.42 GB, free: 7.051 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.6762, allocations: 0.7596 MB / 1.421 GB, free: 6.266 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001146/0.6763, allocations: 25.53 kB / 1.421 GB, free: 6.234 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.6764, allocations: 19.42 kB / 1.421 GB, free: 6.215 MB / 0.9167 GB Notification: Performance of SimCode: time 2.21e-07/0.6764, allocations: 0 / 1.421 GB, free: 6.215 MB / 0.9167 GB Notification: Performance of Templates: time 0.004929/0.6813, allocations: 1.744 MB / 1.423 GB, free: 4.488 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","../files/Buildings_9_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches