Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.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.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel") translateModel(Buildings.Electrical.DC.Lines.Examples.RCModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen_ss.I|sen_dyn.I|RC_ss.Vc|RC_dyn.Vc",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.613/1.613, allocations: 251.9 MB / 266.9 MB, free: 11 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.001212/0.001212, allocations: 177.8 kB / 326.5 MB, free: 2.234 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.89/1.89, allocations: 205.4 MB / 0.5775 GB, free: 20.56 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.0009748/0.0009751, allocations: 90.8 kB / 0.6821 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003933/0.0003934, allocations: 8.344 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.2209, allocations: 106.3 MB / 0.9001 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6248/0.8456, allocations: 164.6 MB / 1.061 GB, free: 155.6 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002271/0.8459, allocations: 88.58 kB / 1.061 GB, free: 155.6 MB / 0.698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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/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/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);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:18:3-18: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.04437/0.8903, allocations: 17.93 MB / 1.078 GB, free: 151 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8903, allocations: 0 / 1.078 GB, free: 151 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.084e-05/0.8904, allocations: 8.344 kB / 1.078 GB, free: 151 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001347/0.8917, allocations: 0.658 MB / 1.079 GB, free: 150.4 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.8918, allocations: 13.77 kB / 1.079 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001179/0.893, allocations: 158.9 kB / 1.079 GB, free: 150.4 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006284/0.8936, allocations: 340 kB / 1.08 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.397e-05/0.8936, allocations: 24.25 kB / 1.08 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.593e-05/0.8937, allocations: 32.73 kB / 1.08 GB, free: 150.1 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008281/0.8946, allocations: 0.5249 MB / 1.08 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.8946, allocations: 4 kB / 1.08 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.988e-05/0.8946, allocations: 17.38 kB / 1.08 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.916e-05/0.8947, allocations: 29.55 kB / 1.08 GB, free: 149.9 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005734/0.8953, allocations: 390.9 kB / 1.081 GB, free: 149.8 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002209/0.8975, allocations: 2.409 MB / 1.083 GB, free: 147.8 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005965/0.8981, allocations: 261.6 kB / 1.083 GB, free: 147.7 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.414e-05/0.8981, allocations: 7.062 kB / 1.083 GB, free: 147.7 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.876e-05/0.8982, allocations: 41.45 kB / 1.083 GB, free: 147.7 MB / 0.698 GB Notification: Performance of pre-optimization done (n=20): time 1.613e-06/0.8982, allocations: 1.438 kB / 1.083 GB, free: 147.7 MB / 0.698 GB Notification: Performance of matching and sorting (n=23): time 0.001959/0.9001, allocations: 1.021 MB / 1.084 GB, free: 147.1 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.677e-05/0.9002, allocations: 54 kB / 1.084 GB, free: 147.1 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003051/0.9005, allocations: 264 kB / 1.085 GB, free: 146.9 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.9005, allocations: 30.52 kB / 1.085 GB, free: 146.9 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.739e-05/0.9006, allocations: 237.3 kB / 1.085 GB, free: 146.7 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.325e-05/0.9007, allocations: 80.69 kB / 1.085 GB, free: 146.7 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.524e-05/0.9007, allocations: 4.906 kB / 1.085 GB, free: 146.7 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.127e-05/0.9008, allocations: 343.9 kB / 1.085 GB, free: 146.3 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001741/0.9009, allocations: 96.67 kB / 1.085 GB, free: 146.3 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002184/0.9012, allocations: 193.1 kB / 1.085 GB, free: 146.2 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002312/0.9014, allocations: 131 kB / 1.086 GB, free: 146.2 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.9014, allocations: 5.094 kB / 1.086 GB, free: 146.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0007874/0.9022, allocations: 440 kB / 1.086 GB, free: 146 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.787e-05/0.9022, allocations: 6.312 kB / 1.086 GB, free: 146 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.9022, allocations: 2.656 kB / 1.086 GB, free: 146 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003272/0.9026, allocations: 96.83 kB / 1.086 GB, free: 146 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002718/0.9029, allocations: 64.34 kB / 1.086 GB, free: 146 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002106/0.905, allocations: 4.109 MB / 1.09 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002387/0.9052, allocations: 7.938 kB / 1.09 GB, free: 141.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.9053, allocations: 11.88 kB / 1.09 GB, free: 141.9 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (34): * Single equations (assignments): 31 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001775/0.9054, allocations: 188.5 kB / 1.09 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.16e-05/0.9055, allocations: 31.28 kB / 1.09 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.655e-05/0.9056, allocations: 41.97 kB / 1.09 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.9056, allocations: 7.891 kB / 1.09 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.9056, allocations: 0 / 1.09 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.446e-06/0.9056, allocations: 0 / 1.09 GB, free: 141.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003499/0.906, allocations: 392.8 kB / 1.091 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.906, allocations: 0 / 1.091 GB, free: 141.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002068/0.9062, allocations: 43.09 kB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002617/0.9065, allocations: 85.41 kB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.679e-05/0.9065, allocations: 7.938 kB / 1.091 GB, free: 141.3 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001908/0.9084, allocations: 4.099 MB / 1.095 GB, free: 137.1 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.9084, allocations: 0 / 1.095 GB, free: 137.1 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006723/0.9091, allocations: 0.5607 MB / 1.096 GB, free: 136.7 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.9092, allocations: 119.2 kB / 1.096 GB, free: 136.6 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.837e-05/0.9093, allocations: 10.23 kB / 1.096 GB, free: 136.6 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.9095, allocations: 7.562 kB / 1.096 GB, free: 136.6 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.821e-05/0.9095, allocations: 23.98 kB / 1.096 GB, free: 136.6 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.449e-05/0.9095, allocations: 7.188 kB / 1.096 GB, free: 136.6 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001496/0.9097, allocations: 206.7 kB / 1.096 GB, free: 136.5 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.51e-07/0.9097, allocations: 4.062 kB / 1.096 GB, free: 136.4 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0004485/0.9102, allocations: 97.53 kB / 1.096 GB, free: 136.4 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (RC_dyn.Vc) * 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 (18): * Single equations (assignments): 15 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001071/0.9103, allocations: 103.2 kB / 1.096 GB, free: 136.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006196/0.9109, allocations: 0.614 MB / 1.097 GB, free: 135.7 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.9109, allocations: 0 / 1.097 GB, free: 135.7 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003438/0.9113, allocations: 468.2 kB / 1.097 GB, free: 135.2 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.9116, allocations: 68.33 kB / 1.097 GB, free: 135.2 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009095/0.9126, allocations: 0.8562 MB / 1.098 GB, free: 134.3 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002238/0.9128, allocations: 0.8419 MB / 1.099 GB, free: 133.4 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001954/0.913, allocations: 62.91 kB / 1.099 GB, free: 133.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.078e-05/0.9131, allocations: 27.44 kB / 1.099 GB, free: 133.3 MB / 0.698 GB Notification: Performance of SimCode: time 3.21e-07/0.9131, allocations: 0 / 1.099 GB, free: 133.3 MB / 0.698 GB Notification: Performance of Templates: time 0.006418/0.9195, allocations: 4.121 MB / 1.103 GB, free: 129.3 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches