Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_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_latest_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 10.0.0-master/package.mo): time 1.68/1.68, allocations: 390.4 MB / 397.7 MB, free: 11.26 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.0008951/0.0008951, allocations: 185.3 kB / 490.8 MB, free: 1.965 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.065/1.065, allocations: 221.3 MB / 0.7863 GB, free: 13.72 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007869/0.0007869, allocations: 91.55 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.07e-06/5.09e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1629/0.1629, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4631/0.6261, allocations: 182.5 MB / 1.39 GB, free: 15.39 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001936/0.6264, allocations: 86.17 kB / 1.39 GB, free: 15.38 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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 10.0.0-master/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.04561/0.672, allocations: 25.4 MB / 1.415 GB, free: 13.73 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.628e-05/0.672, allocations: 8 kB / 1.415 GB, free: 13.73 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.0007995/0.6728, allocations: 0.6177 MB / 1.415 GB, free: 13.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.994e-05/0.6728, allocations: 12.03 kB / 1.415 GB, free: 13.08 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.6739, allocations: 159.3 kB / 1.415 GB, free: 12.92 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004873/0.6744, allocations: 342.1 kB / 1.416 GB, free: 12.57 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.604e-05/0.6744, allocations: 19.94 kB / 1.416 GB, free: 12.55 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.796e-05/0.6745, allocations: 16 kB / 1.416 GB, free: 12.54 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004731/0.6749, allocations: 350.5 kB / 1.416 GB, free: 12.31 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005823/0.6755, allocations: 487.8 kB / 1.417 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.333e-05/0.6756, allocations: 3.938 kB / 1.417 GB, free: 11.91 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.58e-05/0.6756, allocations: 4 kB / 1.417 GB, free: 11.9 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.307e-05/0.6756, allocations: 31.83 kB / 1.417 GB, free: 11.87 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.6777, allocations: 2.339 MB / 1.419 GB, free: 9.543 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001583/0.6779, allocations: 123 kB / 1.419 GB, free: 9.453 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.678, allocations: 109.7 kB / 1.419 GB, free: 9.383 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.788e-05/0.678, allocations: 7.984 kB / 1.419 GB, free: 9.375 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.6781, allocations: 34.56 kB / 1.419 GB, free: 9.332 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=20): time 1.292e-06/0.6781, allocations: 0 / 1.419 GB, free: 9.332 MB / 0.8386 GB Notification: Performance of matching and sorting (n=23): time 0.001337/0.6794, allocations: 0.8009 MB / 1.42 GB, free: 8.602 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.6795, allocations: 55.41 kB / 1.42 GB, free: 8.535 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001832/0.6796, allocations: 229.2 kB / 1.42 GB, free: 8.348 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.067e-05/0.6797, allocations: 25.7 kB / 1.42 GB, free: 8.316 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 8.573e-05/0.6798, allocations: 211.7 kB / 1.421 GB, free: 8.121 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 4.966e-05/0.6798, allocations: 77.12 kB / 1.421 GB, free: 8.055 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.218e-05/0.6798, allocations: 4 kB / 1.421 GB, free: 8.051 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.099e-05/0.6799, allocations: 332.9 kB / 1.421 GB, free: 7.727 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001252/0.6801, allocations: 97 kB / 1.421 GB, free: 7.664 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001844/0.6803, allocations: 192 kB / 1.421 GB, free: 7.48 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001572/0.6804, allocations: 124.2 kB / 1.421 GB, free: 7.398 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.212e-06/0.6804, allocations: 0 / 1.421 GB, free: 7.398 MB / 0.8386 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005948/0.681, allocations: 407 kB / 1.422 GB, free: 7.066 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.6811, allocations: 4 kB / 1.422 GB, free: 7.062 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.702e-06/0.6811, allocations: 7.938 kB / 1.422 GB, free: 7.055 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002981/0.6814, allocations: 97.72 kB / 1.422 GB, free: 6.965 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.6816, allocations: 59.91 kB / 1.422 GB, free: 6.906 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002407/0.6841, allocations: 3.857 MB / 1.426 GB, free: 2.867 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001925/0.6843, allocations: 11.91 kB / 1.426 GB, free: 2.855 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.6843, allocations: 11.19 kB / 1.426 GB, free: 2.848 MB / 0.8386 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.178e-05/0.6844, allocations: 117.5 kB / 1.426 GB, free: 2.73 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.376e-05/0.6844, allocations: 31.8 kB / 1.426 GB, free: 2.699 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.007e-05/0.6845, allocations: 34.84 kB / 1.426 GB, free: 2.684 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.6845, allocations: 4 kB / 1.426 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.6845, allocations: 0 / 1.426 GB, free: 2.68 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.6845, allocations: 3.984 kB / 1.426 GB, free: 2.676 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000317/0.6848, allocations: 335.4 kB / 1.426 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.6849, allocations: 0 / 1.426 GB, free: 2.375 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.685, allocations: 39.91 kB / 1.426 GB, free: 2.336 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002711/0.6853, allocations: 89.58 kB / 1.426 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.366e-05/0.6853, allocations: 0 / 1.426 GB, free: 2.254 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002313/0.6877, allocations: 3.86 MB / 1.43 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.6877, allocations: 3.906 kB / 1.43 GB, free: 14.21 MB / 0.8542 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006393/0.6883, allocations: 0.5444 MB / 1.431 GB, free: 13.75 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001069/0.6884, allocations: 124.5 kB / 1.431 GB, free: 13.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.905e-05/0.6885, allocations: 0 / 1.431 GB, free: 13.62 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001872/0.6887, allocations: 11.94 kB / 1.431 GB, free: 13.61 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.458e-05/0.6887, allocations: 7.984 kB / 1.431 GB, free: 13.61 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.6887, allocations: 4 kB / 1.431 GB, free: 13.6 MB / 0.8542 GB Notification: Performance of sort global known variables: time 0.0001275/0.6889, allocations: 180.9 kB / 1.431 GB, free: 13.45 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003725/0.6892, allocations: 84 kB / 1.431 GB, free: 13.37 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.0001109/0.6894, allocations: 95.25 kB / 1.431 GB, free: 13.27 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0006105/0.69, allocations: 0.563 MB / 1.432 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.69, allocations: 0 / 1.432 GB, free: 12.75 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0003836/0.6904, allocations: 429.9 kB / 1.432 GB, free: 12.34 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003318/0.6907, allocations: 60.16 kB / 1.432 GB, free: 12.3 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007833/0.6915, allocations: 499.8 kB / 1.433 GB, free: 11.83 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003842/0.6919, allocations: 0.8674 MB / 1.433 GB, free: 10.95 MB / 0.8542 GB Notification: Performance of SimCode: time 2.61e-07/0.6919, allocations: 0 / 1.433 GB, free: 10.95 MB / 0.8542 GB Notification: Performance of Templates: time 0.006727/0.6986, allocations: 4.139 MB / 1.437 GB, free: 6.852 MB / 0.8542 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_RCModel.csv","../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.RCModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches