Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance") translateModel(Buildings.Electrical.DC.Lines.Examples.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance") [: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.734/1.734, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.0009439/0.0009439, allocations: 177.2 kB / 487 MB, free: 5.352 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.108/1.108, allocations: 221.3 MB / 0.7819 GB, free: 1.418 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.0008297/0.0008296, allocations: 101 kB / 0.9213 GB, free: 2.668 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.33e-06/5.36e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1854/0.1855, allocations: 142.3 MB / 1.205 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5155/0.701, allocations: 174.8 MB / 1.376 GB, free: 2.234 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001993/0.7012, allocations: 83.64 kB / 1.376 GB, free: 2.191 MB / 0.8073 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.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 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);. Notification: Performance of FrontEnd: time 0.02928/0.7305, allocations: 14.45 MB / 1.39 GB, free: 6.242 MB / 0.823 GB Notification: Performance of Transformations before backend: time 1.268e-05/0.7305, allocations: 4 kB / 1.39 GB, free: 6.238 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.000506/0.731, allocations: 475.9 kB / 1.391 GB, free: 5.742 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.7311, allocations: 8.031 kB / 1.391 GB, free: 5.734 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006072/0.7317, allocations: 83.64 kB / 1.391 GB, free: 5.652 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003474/0.732, allocations: 239.5 kB / 1.391 GB, free: 5.395 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.894e-05/0.7321, allocations: 8 kB / 1.391 GB, free: 5.387 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.576e-05/0.7321, allocations: 8 kB / 1.391 GB, free: 5.379 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002588/0.7324, allocations: 173.1 kB / 1.391 GB, free: 5.266 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003374/0.7327, allocations: 270.6 kB / 1.391 GB, free: 5.031 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.896e-06/0.7327, allocations: 0 / 1.391 GB, free: 5.031 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.067e-05/0.7328, allocations: 3.938 kB / 1.391 GB, free: 5.027 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.663e-05/0.7328, allocations: 15.25 kB / 1.391 GB, free: 5.016 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001281/0.7341, allocations: 1.423 MB / 1.393 GB, free: 3.551 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001669/0.7343, allocations: 91.27 kB / 1.393 GB, free: 3.473 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.573e-05/0.7343, allocations: 28.14 kB / 1.393 GB, free: 3.449 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.065e-05/0.7343, allocations: 4 kB / 1.393 GB, free: 3.445 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.764e-05/0.7344, allocations: 34.56 kB / 1.393 GB, free: 3.402 MB / 0.823 GB Notification: Performance of pre-optimization done (n=7): time 1.142e-06/0.7344, allocations: 0 / 1.393 GB, free: 3.402 MB / 0.823 GB Notification: Performance of matching and sorting (n=7): time 0.0002446/0.7346, allocations: 111 kB / 1.393 GB, free: 3.301 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.124e-05/0.7346, allocations: 55.09 kB / 1.393 GB, free: 3.238 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000129/0.7348, allocations: 161.7 kB / 1.393 GB, free: 3.094 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.7348, allocations: 25.7 kB / 1.393 GB, free: 3.062 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 7.461e-05/0.7349, allocations: 161.8 kB / 1.393 GB, free: 2.91 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.7349, allocations: 31.08 kB / 1.393 GB, free: 2.883 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-06/0.7349, allocations: 0 / 1.393 GB, free: 2.883 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.735, allocations: 325.4 kB / 1.394 GB, free: 2.562 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.445e-05/0.7351, allocations: 31.06 kB / 1.394 GB, free: 2.543 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.852e-05/0.7352, allocations: 100.6 kB / 1.394 GB, free: 2.43 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.018e-05/0.7352, allocations: 48.84 kB / 1.394 GB, free: 2.395 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/0.7352, allocations: 7.938 kB / 1.394 GB, free: 2.387 MB / 0.823 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002571/0.7355, allocations: 168 kB / 1.394 GB, free: 2.238 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.016e-05/0.7355, allocations: 4 kB / 1.394 GB, free: 2.234 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.624e-06/0.7355, allocations: 7.984 kB / 1.394 GB, free: 2.227 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001293/0.7357, allocations: 24.66 kB / 1.394 GB, free: 2.203 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.7358, allocations: 31.17 kB / 1.394 GB, free: 2.176 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009245/0.7367, allocations: 1.249 MB / 1.395 GB, free: 0.8555 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001134/0.7368, allocations: 23.91 kB / 1.395 GB, free: 0.832 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.7369, allocations: 11.98 kB / 1.395 GB, free: 0.8203 MB / 0.823 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 (17): * Single equations (assignments): 16 * 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 6.653e-05/0.7369, allocations: 104.9 kB / 1.395 GB, free: 0.7109 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.774e-05/0.737, allocations: 15.91 kB / 1.396 GB, free: 0.6953 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.603e-05/0.737, allocations: 24.14 kB / 1.396 GB, free: 0.6797 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.737, allocations: 0 / 1.396 GB, free: 0.6797 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.906e-06/0.737, allocations: 0 / 1.396 GB, free: 0.6797 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.737, allocations: 0 / 1.396 GB, free: 0.6797 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/0.7372, allocations: 214.4 kB / 1.396 GB, free: 468 kB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.7372, allocations: 3.938 kB / 1.396 GB, free: 464 kB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.298e-05/0.7373, allocations: 15.89 kB / 1.396 GB, free: 448 kB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.344e-05/0.7374, allocations: 20.28 kB / 1.396 GB, free: 428 kB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.188e-06/0.7374, allocations: 4 kB / 1.396 GB, free: 424 kB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000773/0.7382, allocations: 1.238 MB / 1.397 GB, free: 15.1 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.964e-06/0.7382, allocations: 3.938 kB / 1.397 GB, free: 15.09 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001964/0.7384, allocations: 218.2 kB / 1.397 GB, free: 14.88 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.372e-05/0.7385, allocations: 96.84 kB / 1.397 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.906e-05/0.7385, allocations: 0 / 1.397 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001053/0.7386, allocations: 4 kB / 1.397 GB, free: 14.77 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.2e-05/0.7386, allocations: 4 kB / 1.397 GB, free: 14.76 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.394e-06/0.7386, allocations: 7.891 kB / 1.397 GB, free: 14.75 MB / 0.8386 GB Notification: Performance of sort global known variables: time 8.016e-05/0.7387, allocations: 122.7 kB / 1.397 GB, free: 14.65 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002794/0.739, allocations: 47.84 kB / 1.397 GB, free: 14.6 MB / 0.8386 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 (6): * Single equations (assignments): 5 * 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.0001227/0.7391, allocations: 102 kB / 1.398 GB, free: 14.5 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0002618/0.7394, allocations: 190.3 kB / 1.398 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.7394, allocations: 0 / 1.398 GB, free: 14.32 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001311/0.7395, allocations: 140.1 kB / 1.398 GB, free: 14.19 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002162/0.7398, allocations: 25.94 kB / 1.398 GB, free: 14.17 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003948/0.7402, allocations: 215.3 kB / 1.398 GB, free: 13.96 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003153/0.7405, allocations: 0.7659 MB / 1.399 GB, free: 13.18 MB / 0.8386 GB Notification: Performance of SimCode: time 2.41e-07/0.7405, allocations: 4 kB / 1.399 GB, free: 13.17 MB / 0.8386 GB Notification: Performance of Templates: time 0.003777/0.7443, allocations: 1.593 MB / 1.4 GB, free: 11.6 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","../files/Buildings_9_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches