Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.367/2.367, allocations: 390.3 MB / 402.8 MB, free: 6.688 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.001195/0.001195, allocations: 176.9 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.557/1.557, allocations: 221.3 MB / 0.7915 GB, free: 5.398 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.001009/0.001009, allocations: 107.1 kB / 0.9318 GB, free: 5.707 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.284e-05/3.287e-05, allocations: 4 kB / 1.079 GB, free: 140.6 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3253/0.3253, allocations: 143 MB / 1.219 GB, free: 13.54 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.107/1.432, allocations: 177.6 MB / 1.392 GB, free: 10.6 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002765/1.433, allocations: 85.58 kB / 1.392 GB, free: 10.56 MB / 0.8542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.04031/1.473, allocations: 15.24 MB / 1.407 GB, free: 13.81 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.625e-06/1.473, allocations: 0 / 1.407 GB, free: 13.81 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.68e-05/1.473, allocations: 4 kB / 1.407 GB, free: 13.81 MB / 0.8698 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.0008997/1.474, allocations: 496.2 kB / 1.408 GB, free: 13.3 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.028e-05/1.474, allocations: 8.031 kB / 1.408 GB, free: 13.29 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000951/1.475, allocations: 87.64 kB / 1.408 GB, free: 13.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000473/1.476, allocations: 255.7 kB / 1.408 GB, free: 12.93 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/1.476, allocations: 11.69 kB / 1.408 GB, free: 12.92 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.815e-05/1.476, allocations: 19 kB / 1.408 GB, free: 12.91 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006752/1.476, allocations: 305.4 kB / 1.408 GB, free: 12.66 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/1.477, allocations: 0 / 1.408 GB, free: 12.66 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.821e-05/1.477, allocations: 10.5 kB / 1.408 GB, free: 12.66 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-05/1.477, allocations: 12.44 kB / 1.408 GB, free: 12.64 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004707/1.477, allocations: 199.5 kB / 1.408 GB, free: 12.51 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002192/1.479, allocations: 1.492 MB / 1.41 GB, free: 10.98 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/1.48, allocations: 198.1 kB / 1.41 GB, free: 10.79 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001046/1.48, allocations: 34.73 kB / 1.41 GB, free: 10.76 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.681e-05/1.48, allocations: 0 / 1.41 GB, free: 10.76 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.042e-05/1.48, allocations: 34.5 kB / 1.41 GB, free: 10.72 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=8): time 1.804e-06/1.48, allocations: 0 / 1.41 GB, free: 10.72 MB / 0.8698 GB Notification: Performance of matching and sorting (n=8): time 0.0004654/1.481, allocations: 120.3 kB / 1.41 GB, free: 10.61 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.962e-05/1.481, allocations: 63.23 kB / 1.41 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002754/1.481, allocations: 180.5 kB / 1.411 GB, free: 10.38 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/1.481, allocations: 25.7 kB / 1.411 GB, free: 10.35 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001475/1.481, allocations: 173.1 kB / 1.411 GB, free: 10.2 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.546e-05/1.481, allocations: 31.53 kB / 1.411 GB, free: 10.17 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.396e-05/1.481, allocations: 7.5 kB / 1.411 GB, free: 10.16 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001729/1.481, allocations: 321.8 kB / 1.411 GB, free: 9.848 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/1.482, allocations: 38.36 kB / 1.411 GB, free: 9.82 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/1.482, allocations: 103.7 kB / 1.411 GB, free: 9.703 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001613/1.482, allocations: 61.11 kB / 1.411 GB, free: 9.66 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/1.482, allocations: 0 / 1.411 GB, free: 9.66 MB / 0.8698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0004807/1.482, allocations: 204.7 kB / 1.411 GB, free: 9.484 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/1.482, allocations: 4 kB / 1.411 GB, free: 9.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/1.482, allocations: 4 kB / 1.411 GB, free: 9.477 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002386/1.483, allocations: 27.91 kB / 1.411 GB, free: 9.449 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002177/1.483, allocations: 35.92 kB / 1.412 GB, free: 9.414 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/1.485, allocations: 1.318 MB / 1.413 GB, free: 8.012 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002034/1.485, allocations: 19.81 kB / 1.413 GB, free: 7.996 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.452e-05/1.485, allocations: 8 kB / 1.413 GB, free: 7.988 MB / 0.8698 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 0.0001256/1.485, allocations: 121.5 kB / 1.413 GB, free: 7.867 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.684e-05/1.485, allocations: 19.77 kB / 1.413 GB, free: 7.848 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.101e-05/1.485, allocations: 19.28 kB / 1.413 GB, free: 7.836 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/1.485, allocations: 0 / 1.413 GB, free: 7.836 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/1.485, allocations: 0 / 1.413 GB, free: 7.836 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/1.485, allocations: 3.984 kB / 1.413 GB, free: 7.832 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008454/1.486, allocations: 463.4 kB / 1.413 GB, free: 7.379 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/1.486, allocations: 11.92 kB / 1.413 GB, free: 7.367 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.624e-05/1.486, allocations: 11.88 kB / 1.413 GB, free: 7.359 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001119/1.486, allocations: 20.84 kB / 1.413 GB, free: 7.336 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/1.486, allocations: 3.188 kB / 1.413 GB, free: 7.336 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001161/1.487, allocations: 1.302 MB / 1.415 GB, free: 5.953 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/1.487, allocations: 0 / 1.415 GB, free: 5.953 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003546/1.488, allocations: 221.2 kB / 1.415 GB, free: 5.738 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/1.488, allocations: 100.3 kB / 1.415 GB, free: 5.625 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.833e-05/1.488, allocations: 7.562 kB / 1.415 GB, free: 5.621 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001961/1.488, allocations: 7.984 kB / 1.415 GB, free: 5.613 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.747e-05/1.488, allocations: 7.938 kB / 1.415 GB, free: 5.605 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.857e-05/1.488, allocations: 11.95 kB / 1.415 GB, free: 5.594 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002062/1.489, allocations: 145.4 kB / 1.415 GB, free: 5.473 MB / 0.8698 GB Notification: Performance of sort global known variables: time 9.42e-07/1.489, allocations: 0 / 1.415 GB, free: 5.473 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.000547/1.489, allocations: 58.72 kB / 1.415 GB, free: 5.422 MB / 0.8698 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.0001529/1.489, allocations: 99.34 kB / 1.415 GB, free: 5.316 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0005233/1.49, allocations: 221.4 kB / 1.416 GB, free: 5.113 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/1.49, allocations: 0 / 1.416 GB, free: 5.113 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0002186/1.49, allocations: 153.7 kB / 1.416 GB, free: 4.965 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004155/1.49, allocations: 32.8 kB / 1.416 GB, free: 4.941 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006055/1.491, allocations: 247.9 kB / 1.416 GB, free: 4.703 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004382/1.492, allocations: 0.7582 MB / 1.417 GB, free: 3.926 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.000151/1.492, allocations: 25.3 kB / 1.417 GB, free: 3.902 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.498e-05/1.492, allocations: 19.44 kB / 1.417 GB, free: 3.883 MB / 0.8698 GB Notification: Performance of SimCode: time 2.354e-06/1.492, allocations: 0 / 1.417 GB, free: 3.883 MB / 0.8698 GB Notification: Performance of Templates: time 0.00643/1.498, allocations: 1.759 MB / 1.418 GB, free: 2.156 MB / 0.8698 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.sim & ./Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Sources_Examples_VoltageSource.csv","../files/Buildings_latest_Buildings.Electrical.DC.Sources.Examples.VoltageSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches