Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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_9_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_9_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 9.1.1-maint.9.1.x/package.mo): time 1.754/1.754, allocations: 387.2 MB / 394.5 MB, free: 13.68 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.001001/0.001001, allocations: 188.4 kB / 487 MB, free: 5.387 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.123/1.123, allocations: 221.3 MB / 0.7819 GB, free: 1.383 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008592/0.0008593, allocations: 93.92 kB / 0.9213 GB, free: 2.633 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.27e-06/5.29e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1879/0.188, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5247/0.7127, allocations: 181.7 MB / 1.383 GB, free: 11.63 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.713, allocations: 82.55 kB / 1.383 GB, free: 11.59 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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 9.1.1-maint.9.1.x/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 9.1.1-maint.9.1.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 9.1.1-maint.9.1.x/Electrical/Transmission/BaseClasses/PartialTwoPortRLC.mo:19:3-19: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 9.1.1-maint.9.1.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.05241/0.7654, allocations: 25.39 MB / 1.408 GB, free: 6.555 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.282e-05/0.7655, allocations: 11.98 kB / 1.408 GB, free: 6.543 MB / 0.8386 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.0009667/0.7664, allocations: 0.6246 MB / 1.408 GB, free: 5.898 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.249e-05/0.7665, allocations: 8.031 kB / 1.408 GB, free: 5.891 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001137/0.7676, allocations: 159.3 kB / 1.408 GB, free: 5.734 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006238/0.7682, allocations: 347.5 kB / 1.409 GB, free: 5.387 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.7683, allocations: 8 kB / 1.409 GB, free: 5.379 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/0.7683, allocations: 20 kB / 1.409 GB, free: 5.359 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005195/0.7689, allocations: 354.8 kB / 1.409 GB, free: 5.129 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006298/0.7695, allocations: 480.7 kB / 1.409 GB, free: 4.734 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.7695, allocations: 0 / 1.409 GB, free: 4.734 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.73e-05/0.7696, allocations: 8 kB / 1.41 GB, free: 4.727 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.046e-05/0.7696, allocations: 28.52 kB / 1.41 GB, free: 4.699 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002297/0.7719, allocations: 2.339 MB / 1.412 GB, free: 2.371 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.7721, allocations: 127.4 kB / 1.412 GB, free: 2.277 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001302/0.7722, allocations: 103.7 kB / 1.412 GB, free: 2.207 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.246e-05/0.7723, allocations: 352 / 1.412 GB, free: 2.207 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.7723, allocations: 37.69 kB / 1.412 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.273e-06/0.7723, allocations: 0 / 1.412 GB, free: 2.164 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.00154/0.7738, allocations: 0.8031 MB / 1.413 GB, free: 1.43 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.7739, allocations: 55.39 kB / 1.413 GB, free: 1.363 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/0.7741, allocations: 230.1 kB / 1.413 GB, free: 1.172 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.7741, allocations: 25.7 kB / 1.413 GB, free: 1.141 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 9.139e-05/0.7742, allocations: 216.8 kB / 1.413 GB, free: 0.9414 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 5.86e-05/0.7743, allocations: 77.94 kB / 1.413 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.279e-05/0.7743, allocations: 0 / 1.413 GB, free: 0.875 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001009/0.7744, allocations: 338 kB / 1.414 GB, free: 0.5469 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001279/0.7745, allocations: 89.08 kB / 1.414 GB, free: 500 kB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001747/0.7747, allocations: 180.8 kB / 1.414 GB, free: 324 kB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00017/0.7749, allocations: 134.6 kB / 1.414 GB, free: 232 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.7749, allocations: 0 / 1.414 GB, free: 232 kB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006413/0.7756, allocations: 404.1 kB / 1.415 GB, free: 15.9 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.7756, allocations: 7.984 kB / 1.415 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.874e-06/0.7756, allocations: 4 kB / 1.415 GB, free: 15.89 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003175/0.7759, allocations: 86.89 kB / 1.415 GB, free: 15.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002834/0.7762, allocations: 67.88 kB / 1.415 GB, free: 15.74 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002667/0.7789, allocations: 3.871 MB / 1.418 GB, free: 11.69 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001972/0.7791, allocations: 3.938 kB / 1.418 GB, free: 11.68 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.7791, allocations: 19.12 kB / 1.418 GB, free: 11.67 MB / 0.8542 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.836e-05/0.7792, allocations: 120 kB / 1.419 GB, free: 11.55 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.602e-05/0.7793, allocations: 27.62 kB / 1.419 GB, free: 11.52 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.381e-05/0.7793, allocations: 36.3 kB / 1.419 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.7794, allocations: 4.094 kB / 1.419 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/0.7794, allocations: 4 kB / 1.419 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.7794, allocations: 0 / 1.419 GB, free: 11.5 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003512/0.7797, allocations: 336.8 kB / 1.419 GB, free: 11.19 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.7797, allocations: 0 / 1.419 GB, free: 11.19 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001897/0.7799, allocations: 39.11 kB / 1.419 GB, free: 11.16 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002867/0.7802, allocations: 91.75 kB / 1.419 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.7803, allocations: 0 / 1.419 GB, free: 11.07 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00253/0.7828, allocations: 3.867 MB / 1.423 GB, free: 7.023 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.7828, allocations: 0 / 1.423 GB, free: 7.023 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000709/0.7835, allocations: 0.5338 MB / 1.423 GB, free: 6.582 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.7836, allocations: 123.7 kB / 1.424 GB, free: 6.449 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.078e-05/0.7837, allocations: 0 / 1.424 GB, free: 6.449 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.7839, allocations: 11.98 kB / 1.424 GB, free: 6.438 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.953e-05/0.7839, allocations: 15.05 kB / 1.424 GB, free: 6.426 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.784, allocations: 4 kB / 1.424 GB, free: 6.422 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001342/0.7841, allocations: 174.5 kB / 1.424 GB, free: 6.289 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0004009/0.7845, allocations: 88 kB / 1.424 GB, free: 6.203 MB / 0.8542 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.0001288/0.7846, allocations: 103.3 kB / 1.424 GB, free: 6.094 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006596/0.7853, allocations: 0.5532 MB / 1.424 GB, free: 5.586 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.7853, allocations: 0 / 1.424 GB, free: 5.586 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0004082/0.7857, allocations: 429.4 kB / 1.425 GB, free: 5.176 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003258/0.7861, allocations: 60.84 kB / 1.425 GB, free: 5.129 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000869/0.7869, allocations: 0.4995 MB / 1.425 GB, free: 4.648 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004387/0.7874, allocations: 0.8563 MB / 1.426 GB, free: 3.781 MB / 0.8542 GB Notification: Performance of SimCode: time 2.51e-07/0.7874, allocations: 4 kB / 1.426 GB, free: 3.777 MB / 0.8542 GB Notification: Performance of Templates: time 0.007561/0.795, allocations: 4.143 MB / 1.43 GB, free: 15.68 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches