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.301/1.301, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00102/0.00102, allocations: 182.7 kB / 326.5 MB, free: 2.223 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.779/1.779, allocations: 205.4 MB / 0.5775 GB, free: 20.23 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.0008353/0.0008352, allocations: 89.5 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003277/0.0003281, allocations: 8.719 kB / 0.7962 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.2349, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.188/0.423, allocations: 158.9 MB / 1.055 GB, free: 0.7891 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.4233, allocations: 99.92 kB / 1.055 GB, free: 0.6914 MB / 0.698 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.4817/0.905, allocations: 11.78 MB / 1.067 GB, free: 154.5 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.355e-06/0.905, allocations: 0 / 1.067 GB, free: 154.5 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.151e-05/0.9051, allocations: 8.844 kB / 1.067 GB, free: 154.5 MB / 0.698 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.0007357/0.9058, allocations: 0.5042 MB / 1.067 GB, free: 154.1 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.9058, allocations: 9.312 kB / 1.067 GB, free: 154.1 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006471/0.9065, allocations: 86.53 kB / 1.067 GB, free: 154.1 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003267/0.9068, allocations: 252 kB / 1.068 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.439e-05/0.9069, allocations: 20.34 kB / 1.068 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.555e-05/0.9069, allocations: 16.28 kB / 1.068 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005515/0.9075, allocations: 310 kB / 1.068 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.9075, allocations: 0.75 kB / 1.068 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.9076, allocations: 6.094 kB / 1.068 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-05/0.9076, allocations: 23.45 kB / 1.068 GB, free: 153.8 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004115/0.908, allocations: 210.4 kB / 1.068 GB, free: 153.7 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001455/0.9095, allocations: 1.486 MB / 1.07 GB, free: 152.5 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004201/0.9099, allocations: 214 kB / 1.07 GB, free: 152.4 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.521e-05/0.91, allocations: 4.859 kB / 1.07 GB, free: 152.4 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.91, allocations: 35.88 kB / 1.07 GB, free: 152.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=8): time 1.253e-06/0.91, allocations: 0 / 1.07 GB, free: 152.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=8): time 0.0005598/0.9106, allocations: 260.7 kB / 1.07 GB, free: 152.2 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.559e-05/0.9106, allocations: 52.47 kB / 1.07 GB, free: 152.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001746/0.9108, allocations: 182.4 kB / 1.07 GB, free: 152 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.43e-05/0.9108, allocations: 30.33 kB / 1.07 GB, free: 152 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 8.317e-05/0.9109, allocations: 175 kB / 1.071 GB, free: 151.9 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.9109, allocations: 28.33 kB / 1.071 GB, free: 151.9 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.895e-06/0.9109, allocations: 8.562 kB / 1.071 GB, free: 151.9 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.737e-05/0.911, allocations: 330.8 kB / 1.071 GB, free: 151.5 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.481e-05/0.9111, allocations: 42.75 kB / 1.071 GB, free: 151.5 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001184/0.9112, allocations: 109.4 kB / 1.071 GB, free: 151.5 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000123/0.9114, allocations: 61.64 kB / 1.071 GB, free: 151.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.9114, allocations: 0.7188 kB / 1.071 GB, free: 151.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0003939/0.9118, allocations: 212 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.556e-05/0.9118, allocations: 10.36 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.9118, allocations: 1.75 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001748/0.912, allocations: 29.84 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000151/0.9122, allocations: 37.44 kB / 1.071 GB, free: 151.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008291/0.913, allocations: 1.32 MB / 1.073 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001537/0.9132, allocations: 19.62 kB / 1.073 GB, free: 150.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.926e-05/0.9132, allocations: 10 kB / 1.073 GB, free: 150.1 MB / 0.698 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.0001345/0.9134, allocations: 148.9 kB / 1.073 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.297e-05/0.9134, allocations: 20.48 kB / 1.073 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.535e-05/0.9134, allocations: 19.58 kB / 1.073 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.9134, allocations: 4.875 kB / 1.073 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/0.9135, allocations: 0.8125 kB / 1.073 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.9135, allocations: 0.7812 kB / 1.073 GB, free: 149.9 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005662/0.914, allocations: 484.6 kB / 1.073 GB, free: 149.6 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.9141, allocations: 4 kB / 1.073 GB, free: 149.6 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.822e-05/0.9141, allocations: 10.25 kB / 1.073 GB, free: 149.6 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.765e-05/0.9142, allocations: 26.69 kB / 1.073 GB, free: 149.6 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.9142, allocations: 4.844 kB / 1.073 GB, free: 149.6 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006885/0.9149, allocations: 1.317 MB / 1.075 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.9149, allocations: 0 / 1.075 GB, free: 148.4 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002741/0.9152, allocations: 236.9 kB / 1.075 GB, free: 148.2 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 6.676e-05/0.9153, allocations: 99.77 kB / 1.075 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.983e-05/0.9153, allocations: 4.656 kB / 1.075 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001254/0.9155, allocations: 5.562 kB / 1.075 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.135e-05/0.9155, allocations: 10.7 kB / 1.075 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.9155, allocations: 2.406 kB / 1.075 GB, free: 148.1 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001235/0.9157, allocations: 144.1 kB / 1.075 GB, free: 148 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9157, allocations: 0 / 1.075 GB, free: 148 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003825/0.9161, allocations: 59.53 kB / 1.075 GB, free: 148 MB / 0.698 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.0001237/0.9162, allocations: 110.9 kB / 1.075 GB, free: 147.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004328/0.9166, allocations: 221.6 kB / 1.076 GB, free: 147.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.9167, allocations: 0.5625 kB / 1.076 GB, free: 147.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001923/0.9169, allocations: 169.2 kB / 1.076 GB, free: 147.7 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002974/0.9172, allocations: 39.98 kB / 1.076 GB, free: 147.7 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007666/0.9179, allocations: 478 kB / 1.076 GB, free: 147.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002744/0.9182, allocations: 0.7558 MB / 1.077 GB, free: 146.7 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001258/0.9184, allocations: 26.66 kB / 1.077 GB, free: 146.7 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.562e-05/0.9184, allocations: 14.5 kB / 1.077 GB, free: 146.7 MB / 0.698 GB Notification: Performance of SimCode: time 7.52e-07/0.9184, allocations: 4 kB / 1.077 GB, free: 146.7 MB / 0.698 GB Notification: Performance of Templates: time 0.005274/0.9237, allocations: 1.756 MB / 1.079 GB, free: 146.3 MB / 0.698 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