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.415/1.415, allocations: 249.5 MB / 257 MB, free: 6.961 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.001283/0.001284, allocations: 169 kB / 316.3 MB, free: 3.316 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.425/1.425, allocations: 205.3 MB / 0.5671 GB, free: 15.89 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.0008991/0.0008992, allocations: 90.41 kB / 0.6714 GB, free: 5.016 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.693e-05/1.695e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2015, allocations: 106.3 MB / 0.8852 GB, free: 12.3 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7568/0.9583, allocations: 159.1 MB / 1.041 GB, free: 12.84 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002535/0.9586, allocations: 87.08 kB / 1.041 GB, free: 12.8 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.02735/0.986, allocations: 11.64 MB / 1.052 GB, free: 3.246 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.673e-06/0.986, allocations: 0 / 1.052 GB, free: 3.246 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.888e-05/0.9861, allocations: 12 kB / 1.052 GB, free: 3.234 MB / 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.0006525/0.9867, allocations: 488.4 kB / 1.053 GB, free: 2.727 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 4.563e-05/0.9868, allocations: 12.03 kB / 1.053 GB, free: 2.715 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000647/0.9874, allocations: 87.27 kB / 1.053 GB, free: 2.633 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003415/0.9878, allocations: 250.9 kB / 1.053 GB, free: 2.363 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.9878, allocations: 4 kB / 1.053 GB, free: 2.359 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/0.9878, allocations: 12 kB / 1.053 GB, free: 2.348 MB / 0.6667 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002969/0.9881, allocations: 172.9 kB / 1.053 GB, free: 2.238 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003879/0.9885, allocations: 273 kB / 1.053 GB, free: 2.008 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.9886, allocations: 8 kB / 1.053 GB, free: 2 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.383e-05/0.9886, allocations: 0 / 1.053 GB, free: 2 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.882e-05/0.9886, allocations: 12.44 kB / 1.053 GB, free: 1.988 MB / 0.6667 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001351/0.99, allocations: 1.44 MB / 1.055 GB, free: 0.5039 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000365/0.9904, allocations: 192.5 kB / 1.055 GB, free: 324 kB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.099e-05/0.9904, allocations: 35.98 kB / 1.055 GB, free: 296 kB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 1.27e-05/0.9905, allocations: 0 / 1.055 GB, free: 296 kB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.9905, allocations: 38.55 kB / 1.055 GB, free: 248 kB / 0.6667 GB Notification: Performance of pre-optimization done (n=8): time 8.32e-07/0.9905, allocations: 0 / 1.055 GB, free: 248 kB / 0.6667 GB Notification: Performance of matching and sorting (n=8): time 0.0002783/0.9908, allocations: 108.2 kB / 1.055 GB, free: 148 kB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.9908, allocations: 51.41 kB / 1.055 GB, free: 84 kB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.991, allocations: 178.5 kB / 1.055 GB, free: 15.92 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.909e-05/0.9911, allocations: 29.7 kB / 1.055 GB, free: 15.88 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.9912, allocations: 172.4 kB / 1.055 GB, free: 15.73 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.9912, allocations: 27.52 kB / 1.056 GB, free: 15.71 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.933e-06/0.9912, allocations: 0 / 1.056 GB, free: 15.71 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.9914, allocations: 329.2 kB / 1.056 GB, free: 15.38 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.591e-05/0.9914, allocations: 38.55 kB / 1.056 GB, free: 15.36 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.956e-05/0.9915, allocations: 97.83 kB / 1.056 GB, free: 15.25 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.204e-05/0.9916, allocations: 50.81 kB / 1.056 GB, free: 15.21 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.9916, allocations: 4 kB / 1.056 GB, free: 15.21 MB / 0.6823 GB Notification: Performance of matching and sorting (n=19) (initialization): time 0.000275/0.9919, allocations: 172 kB / 1.056 GB, free: 15.06 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.97e-05/0.9919, allocations: 9.234 kB / 1.056 GB, free: 15.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.972e-06/0.9919, allocations: 4 kB / 1.056 GB, free: 15.05 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001596/0.9921, allocations: 36.83 kB / 1.056 GB, free: 15.01 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001351/0.9922, allocations: 31.98 kB / 1.056 GB, free: 14.98 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009105/0.9932, allocations: 1.261 MB / 1.057 GB, free: 13.65 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001264/0.9933, allocations: 11.84 kB / 1.057 GB, free: 13.64 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.67e-05/0.9933, allocations: 11.06 kB / 1.058 GB, free: 13.63 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.552e-05/0.9934, allocations: 112.9 kB / 1.058 GB, free: 13.52 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.838e-05/0.9935, allocations: 15.81 kB / 1.058 GB, free: 13.5 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.9935, allocations: 20.83 kB / 1.058 GB, free: 13.49 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.9935, allocations: 4.094 kB / 1.058 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.9935, allocations: 7.953 kB / 1.058 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.9935, allocations: 0 / 1.058 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004473/0.994, allocations: 413.2 kB / 1.058 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.994, allocations: 0 / 1.058 GB, free: 13.08 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.563e-05/0.9941, allocations: 15.92 kB / 1.058 GB, free: 13.06 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.193e-05/0.9942, allocations: 24.62 kB / 1.058 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.989e-06/0.9942, allocations: 7.984 kB / 1.058 GB, free: 13.03 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008164/0.995, allocations: 1.249 MB / 1.059 GB, free: 11.71 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.995, allocations: 8 kB / 1.059 GB, free: 11.7 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002135/0.9952, allocations: 218.8 kB / 1.06 GB, free: 11.49 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 7.536e-05/0.9953, allocations: 103.9 kB / 1.06 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.891e-05/0.9954, allocations: 0 / 1.06 GB, free: 11.38 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001213/0.9955, allocations: 7.984 kB / 1.06 GB, free: 11.37 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.959e-05/0.9955, allocations: 11.98 kB / 1.06 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.9955, allocations: 0 / 1.06 GB, free: 11.36 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 9.644e-05/0.9956, allocations: 130.4 kB / 1.06 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.51e-07/0.9956, allocations: 0 / 1.06 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003169/0.996, allocations: 51.84 kB / 1.06 GB, free: 11.2 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.0001195/0.9961, allocations: 95.25 kB / 1.06 GB, free: 11.09 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003568/0.9965, allocations: 221.5 kB / 1.06 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.9965, allocations: 0 / 1.06 GB, free: 10.89 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001597/0.9966, allocations: 140.8 kB / 1.06 GB, free: 10.76 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002737/0.9969, allocations: 29.86 kB / 1.06 GB, free: 10.73 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004261/0.9974, allocations: 228 kB / 1.061 GB, free: 10.51 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003167/0.9977, allocations: 0.7656 MB / 1.061 GB, free: 9.727 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001019/0.9978, allocations: 25.19 kB / 1.061 GB, free: 9.699 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.504e-05/0.9978, allocations: 15.44 kB / 1.061 GB, free: 9.684 MB / 0.6823 GB Notification: Performance of SimCode: time 2.51e-07/0.9978, allocations: 0 / 1.061 GB, free: 9.684 MB / 0.6823 GB Notification: Performance of Templates: time 0.004265/1.002, allocations: 1.573 MB / 1.063 GB, free: 8.145 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