Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I",fileNamePrefix="Buildings_latest_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_latest_Buildings.Electrical.DC.Lines.Examples.Resistance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.252/2.252, allocations: 390.5 MB / 398 MB, free: 10.95 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.001049/0.001049, allocations: 184.1 kB / 491.2 MB, free: 1.582 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.825/1.825, allocations: 221.5 MB / 0.7868 GB, free: 13.34 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.0008828/0.0008827, allocations: 98.11 kB / 0.9269 GB, free: 13.83 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.098e-05/2.1e-05, allocations: 0 / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3864/0.3864, allocations: 143 MB / 1.212 GB, free: 39.54 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.243/1.63, allocations: 175.7 MB / 1.384 GB, free: 17.46 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003532/1.63, allocations: 85.88 kB / 1.384 GB, free: 17.46 MB / 0.823 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 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);. Notification: Performance of FrontEnd - DAE generated: time 0.04057/1.671, allocations: 14.8 MB / 1.398 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.954e-06/1.671, allocations: 0 / 1.398 GB, free: 27.35 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 2.161e-05/1.671, allocations: 7.719 kB / 1.398 GB, free: 27.34 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: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0006987/1.672, allocations: 466.6 kB / 1.399 GB, free: 26.92 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/1.672, allocations: 11.53 kB / 1.399 GB, free: 26.92 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008703/1.673, allocations: 85.89 kB / 1.399 GB, free: 26.88 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003732/1.673, allocations: 243.4 kB / 1.399 GB, free: 26.65 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.934e-05/1.673, allocations: 11.72 kB / 1.399 GB, free: 26.65 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.782e-05/1.673, allocations: 11.66 kB / 1.399 GB, free: 26.65 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000377/1.674, allocations: 165.9 kB / 1.399 GB, free: 26.63 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004408/1.674, allocations: 261 kB / 1.4 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.565e-05/1.674, allocations: 0 / 1.4 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/1.674, allocations: 0 / 1.4 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.482e-05/1.674, allocations: 12.06 kB / 1.4 GB, free: 26.51 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001571/1.676, allocations: 1.412 MB / 1.401 GB, free: 25.06 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002819/1.676, allocations: 169.6 kB / 1.401 GB, free: 24.89 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.331e-05/1.676, allocations: 35.39 kB / 1.401 GB, free: 24.87 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 9.258e-06/1.676, allocations: 0 / 1.401 GB, free: 24.87 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/1.676, allocations: 38.56 kB / 1.401 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 1.413e-06/1.676, allocations: 0 / 1.401 GB, free: 24.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=7): time 0.0003391/1.676, allocations: 97.59 kB / 1.401 GB, free: 24.73 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.761e-05/1.677, allocations: 59.39 kB / 1.401 GB, free: 24.66 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002026/1.677, allocations: 158.1 kB / 1.402 GB, free: 24.52 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.528e-05/1.677, allocations: 25.7 kB / 1.402 GB, free: 24.49 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/1.677, allocations: 169.1 kB / 1.402 GB, free: 24.34 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.418e-05/1.677, allocations: 31.02 kB / 1.402 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.157e-06/1.677, allocations: 0 / 1.402 GB, free: 24.31 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001361/1.677, allocations: 329.1 kB / 1.402 GB, free: 23.98 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.196e-05/1.677, allocations: 25.56 kB / 1.402 GB, free: 23.97 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.552e-05/1.677, allocations: 92.52 kB / 1.402 GB, free: 23.86 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.045e-05/1.677, allocations: 52.78 kB / 1.402 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/1.677, allocations: 0 / 1.402 GB, free: 23.82 MB / 0.8386 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003156/1.678, allocations: 170.6 kB / 1.402 GB, free: 23.67 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 2.494e-05/1.678, allocations: 8 kB / 1.402 GB, free: 23.66 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/1.678, allocations: 0 / 1.402 GB, free: 23.66 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000208/1.678, allocations: 28.22 kB / 1.402 GB, free: 23.64 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/1.678, allocations: 27.92 kB / 1.402 GB, free: 23.61 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001101/1.679, allocations: 1.263 MB / 1.404 GB, free: 22.28 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001564/1.679, allocations: 15.78 kB / 1.404 GB, free: 22.26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/1.679, allocations: 8.156 kB / 1.404 GB, free: 22.25 MB / 0.8386 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 9.898e-05/1.679, allocations: 108.9 kB / 1.404 GB, free: 22.14 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.686e-05/1.68, allocations: 11.91 kB / 1.404 GB, free: 22.13 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.336e-05/1.68, allocations: 21.27 kB / 1.404 GB, free: 22.12 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.714e-06/1.68, allocations: 0 / 1.404 GB, free: 22.12 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/1.68, allocations: 0 / 1.404 GB, free: 22.12 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/1.68, allocations: 3.953 kB / 1.404 GB, free: 22.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005254/1.68, allocations: 401.6 kB / 1.404 GB, free: 21.72 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/1.68, allocations: 0 / 1.404 GB, free: 21.72 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.868e-05/1.68, allocations: 16.05 kB / 1.404 GB, free: 21.7 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.52e-05/1.68, allocations: 22.84 kB / 1.404 GB, free: 21.68 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.099e-05/1.68, allocations: 3.953 kB / 1.404 GB, free: 21.68 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009911/1.681, allocations: 1.259 MB / 1.406 GB, free: 20.35 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.681, allocations: 0 / 1.406 GB, free: 20.35 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002235/1.682, allocations: 194.4 kB / 1.406 GB, free: 20.16 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 6.572e-05/1.682, allocations: 104.4 kB / 1.406 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/1.682, allocations: 0 / 1.406 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/1.682, allocations: 7.938 kB / 1.406 GB, free: 20.04 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.123e-05/1.682, allocations: 7.984 kB / 1.406 GB, free: 20.03 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.623e-06/1.682, allocations: 0 / 1.406 GB, free: 20.03 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001256/1.682, allocations: 126.6 kB / 1.406 GB, free: 19.92 MB / 0.8386 GB Notification: Performance of sort global known variables: time 2e-07/1.682, allocations: 0 / 1.406 GB, free: 19.92 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005038/1.683, allocations: 47.84 kB / 1.406 GB, free: 19.87 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.0001833/1.683, allocations: 102.6 kB / 1.406 GB, free: 19.76 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.000457/1.683, allocations: 190.2 kB / 1.406 GB, free: 19.59 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/1.683, allocations: 0 / 1.406 GB, free: 19.59 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001712/1.683, allocations: 136.7 kB / 1.406 GB, free: 19.46 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004054/1.684, allocations: 40.27 kB / 1.406 GB, free: 19.43 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005661/1.684, allocations: 221.9 kB / 1.407 GB, free: 19.21 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005312/1.685, allocations: 0.7531 MB / 1.407 GB, free: 18.43 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 0.0001354/1.685, allocations: 25.19 kB / 1.407 GB, free: 18.41 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.261e-05/1.685, allocations: 15.44 kB / 1.407 GB, free: 18.39 MB / 0.8386 GB Notification: Performance of SimCode: time 3.1e-07/1.685, allocations: 0 / 1.407 GB, free: 18.39 MB / 0.8386 GB Notification: Performance of Templates: time 0.005208/1.69, allocations: 1.419 MB / 1.409 GB, free: 17.01 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & ./Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches