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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.193/1.193, allocations: 249.4 MB / 256.7 MB, free: 7.004 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.0009698/0.0009698, allocations: 181.2 kB / 316 MB, free: 3.523 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.01/1.01, allocations: 205.1 MB / 0.5667 GB, free: 15.61 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.0008369/0.0008368, allocations: 95.31 kB / 0.671 GB, free: 4.738 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 5.17e-06/5.2e-06, allocations: 0 / 0.7807 GB, free: 103.1 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1327/0.1327, allocations: 106.3 MB / 0.8846 GB, free: 12.64 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4033/0.5361, allocations: 164.9 MB / 1.046 GB, free: 8.148 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001933/0.5363, allocations: 82.7 kB / 1.046 GB, free: 8.105 MB / 0.6667 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: time 0.03742/0.5737, allocations: 17.41 MB / 1.063 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.706e-05/0.5738, allocations: 8 kB / 1.063 GB, free: 9.75 MB / 0.6823 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.000794/0.5746, allocations: 0.6262 MB / 1.063 GB, free: 9.102 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.043e-05/0.5746, allocations: 12.03 kB / 1.063 GB, free: 9.09 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.5757, allocations: 158.5 kB / 1.063 GB, free: 8.938 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004996/0.5762, allocations: 349 kB / 1.064 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.595e-05/0.5762, allocations: 11.98 kB / 1.064 GB, free: 8.574 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.666e-05/0.5762, allocations: 20 kB / 1.064 GB, free: 8.555 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004704/0.5767, allocations: 346.1 kB / 1.064 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005894/0.5773, allocations: 482.5 kB / 1.065 GB, free: 7.934 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.5773, allocations: 0 / 1.065 GB, free: 7.934 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.568e-05/0.5774, allocations: 7.938 kB / 1.065 GB, free: 7.926 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.557e-05/0.5774, allocations: 32.38 kB / 1.065 GB, free: 7.898 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002062/0.5795, allocations: 2.344 MB / 1.067 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001548/0.5797, allocations: 127.9 kB / 1.067 GB, free: 5.469 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000124/0.5798, allocations: 103 kB / 1.067 GB, free: 5.398 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.683e-05/0.5798, allocations: 8.281 kB / 1.067 GB, free: 5.391 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.5798, allocations: 38 kB / 1.067 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=20): time 1.262e-06/0.5798, allocations: 0 / 1.067 GB, free: 5.348 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23): time 0.001369/0.5812, allocations: 0.7985 MB / 1.068 GB, free: 4.617 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.202e-05/0.5813, allocations: 51.41 kB / 1.068 GB, free: 4.555 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001944/0.5815, allocations: 235.2 kB / 1.068 GB, free: 4.359 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.5815, allocations: 25.7 kB / 1.068 GB, free: 4.328 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.535e-05/0.5816, allocations: 208.7 kB / 1.068 GB, free: 4.137 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 4.722e-05/0.5816, allocations: 73.92 kB / 1.069 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.215e-05/0.5816, allocations: 0 / 1.069 GB, free: 4.074 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 8.944e-05/0.5817, allocations: 335.8 kB / 1.069 GB, free: 3.746 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.5819, allocations: 99.31 kB / 1.069 GB, free: 3.68 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001641/0.582, allocations: 176.9 kB / 1.069 GB, free: 3.512 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00016/0.5822, allocations: 130.9 kB / 1.069 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.5822, allocations: 0 / 1.069 GB, free: 3.422 MB / 0.6823 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006049/0.5828, allocations: 402.8 kB / 1.07 GB, free: 3.094 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 9.829e-06/0.5828, allocations: 4 kB / 1.07 GB, free: 3.09 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.935e-06/0.5829, allocations: 11.98 kB / 1.07 GB, free: 3.078 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003257/0.5832, allocations: 99.75 kB / 1.07 GB, free: 2.984 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.5835, allocations: 62.97 kB / 1.07 GB, free: 2.926 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/0.5859, allocations: 3.859 MB / 1.074 GB, free: 14.89 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001926/0.5861, allocations: 8 kB / 1.074 GB, free: 14.88 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.07e-05/0.5862, allocations: 8 kB / 1.074 GB, free: 14.87 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 () * 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 8.771e-05/0.5863, allocations: 127.1 kB / 1.074 GB, free: 14.74 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.316e-05/0.5863, allocations: 27.7 kB / 1.074 GB, free: 14.71 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.298e-05/0.5864, allocations: 35.98 kB / 1.074 GB, free: 14.7 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.5864, allocations: 4 kB / 1.074 GB, free: 14.7 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.5864, allocations: 0 / 1.074 GB, free: 14.7 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.5864, allocations: 0 / 1.074 GB, free: 14.7 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003232/0.5867, allocations: 345 kB / 1.074 GB, free: 14.39 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.5867, allocations: 0 / 1.074 GB, free: 14.39 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.5869, allocations: 35.92 kB / 1.074 GB, free: 14.35 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002757/0.5872, allocations: 96.81 kB / 1.074 GB, free: 14.26 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.388e-05/0.5872, allocations: 0 / 1.074 GB, free: 14.26 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002426/0.5897, allocations: 3.855 MB / 1.078 GB, free: 10.23 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.5897, allocations: 3.938 kB / 1.078 GB, free: 10.22 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000685/0.5904, allocations: 0.5427 MB / 1.079 GB, free: 9.77 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001141/0.5905, allocations: 123.9 kB / 1.079 GB, free: 9.641 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.11e-05/0.5905, allocations: 3.906 kB / 1.079 GB, free: 9.637 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001926/0.5907, allocations: 8.062 kB / 1.079 GB, free: 9.629 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.073e-05/0.5908, allocations: 15.97 kB / 1.079 GB, free: 9.613 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.526e-05/0.5908, allocations: 7.562 kB / 1.079 GB, free: 9.609 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.0001338/0.5909, allocations: 170.6 kB / 1.079 GB, free: 9.473 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003811/0.5913, allocations: 84 kB / 1.079 GB, free: 9.391 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 () * 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.0001224/0.5915, allocations: 99.23 kB / 1.079 GB, free: 9.285 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0006415/0.5921, allocations: 0.5517 MB / 1.08 GB, free: 8.781 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.5921, allocations: 0 / 1.08 GB, free: 8.781 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004143/0.5925, allocations: 430.5 kB / 1.08 GB, free: 8.367 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003229/0.5929, allocations: 53.19 kB / 1.08 GB, free: 8.328 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008633/0.5937, allocations: 0.5022 MB / 1.08 GB, free: 7.855 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004154/0.5942, allocations: 0.8583 MB / 1.081 GB, free: 6.984 MB / 0.698 GB Notification: Performance of SimCode: time 2.41e-07/0.5942, allocations: 0 / 1.081 GB, free: 6.984 MB / 0.698 GB Notification: Performance of Templates: time 0.006896/0.6011, allocations: 4.142 MB / 1.085 GB, free: 2.883 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