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.325/2.325, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.001187/0.001187, allocations: 187.9 kB / 0.4902 GB, free: 2.238 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.623/1.623, allocations: 223.1 MB / 0.7992 GB, free: 14.67 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.001169/0.001169, allocations: 100.3 kB / 0.9396 GB, free: 1.875 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004167/0.0004167, allocations: 11.81 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3725/0.373, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2357/0.6088, allocations: 176.4 MB / 1.401 GB, free: 9.051 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000308/0.6091, allocations: 91.94 kB / 1.402 GB, free: 8.961 MB / 0.9011 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.03436/0.6435, allocations: 14.96 MB / 1.416 GB, free: 9.793 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.324e-06/0.6435, allocations: 4 kB / 1.416 GB, free: 9.789 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 1.813e-05/0.6436, allocations: 4 kB / 1.416 GB, free: 9.785 MB / 0.9167 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.0007542/0.6443, allocations: 494.9 kB / 1.417 GB, free: 9.25 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 3.958e-05/0.6444, allocations: 8.562 kB / 1.417 GB, free: 9.242 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006374/0.645, allocations: 87.64 kB / 1.417 GB, free: 9.156 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003778/0.6454, allocations: 243.4 kB / 1.417 GB, free: 8.879 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.6454, allocations: 12.38 kB / 1.417 GB, free: 8.867 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.345e-05/0.6455, allocations: 20 kB / 1.417 GB, free: 8.848 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004909/0.646, allocations: 291.9 kB / 1.417 GB, free: 8.539 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.455e-05/0.646, allocations: 4 kB / 1.417 GB, free: 8.535 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.545e-05/0.646, allocations: 8 kB / 1.417 GB, free: 8.527 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.448e-05/0.6461, allocations: 20.36 kB / 1.417 GB, free: 8.508 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003198/0.6464, allocations: 196.7 kB / 1.418 GB, free: 8.316 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.6482, allocations: 1.46 MB / 1.419 GB, free: 6.695 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.6484, allocations: 179.6 kB / 1.419 GB, free: 6.492 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.102e-05/0.6485, allocations: 0 / 1.419 GB, free: 6.492 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/0.6485, allocations: 34.78 kB / 1.419 GB, free: 6.449 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.6485, allocations: 8 kB / 1.419 GB, free: 6.441 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.0005112/0.649, allocations: 231.3 kB / 1.419 GB, free: 6.188 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.21e-05/0.6491, allocations: 55.36 kB / 1.419 GB, free: 6.121 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.6493, allocations: 177.4 kB / 1.42 GB, free: 5.938 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.009e-05/0.6493, allocations: 29.7 kB / 1.42 GB, free: 5.902 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.6494, allocations: 163.6 kB / 1.42 GB, free: 5.734 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 2.229e-05/0.6495, allocations: 27.64 kB / 1.42 GB, free: 5.707 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.056e-06/0.6495, allocations: 8 kB / 1.42 GB, free: 5.699 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001487/0.6496, allocations: 322.8 kB / 1.42 GB, free: 5.375 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.083e-05/0.6497, allocations: 35.98 kB / 1.42 GB, free: 5.34 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001093/0.6498, allocations: 98.44 kB / 1.42 GB, free: 5.215 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001067/0.6499, allocations: 55.86 kB / 1.42 GB, free: 5.16 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.65, allocations: 0 / 1.42 GB, free: 5.16 MB / 0.9167 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003071/0.6503, allocations: 194 kB / 1.42 GB, free: 4.961 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.6503, allocations: 8 kB / 1.42 GB, free: 4.953 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/0.6503, allocations: 4 kB / 1.421 GB, free: 4.949 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001845/0.6505, allocations: 28.8 kB / 1.421 GB, free: 4.918 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001093/0.6506, allocations: 27.92 kB / 1.421 GB, free: 4.891 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001215/0.6518, allocations: 1.323 MB / 1.422 GB, free: 3.434 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001309/0.652, allocations: 23.69 kB / 1.422 GB, free: 3.41 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.652, allocations: 8.25 kB / 1.422 GB, free: 3.402 MB / 0.9167 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 () * Number of clocked 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 0.0001452/0.6522, allocations: 147.2 kB / 1.422 GB, free: 3.25 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.691e-05/0.6522, allocations: 15.91 kB / 1.422 GB, free: 3.234 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.146e-05/0.6522, allocations: 17.39 kB / 1.422 GB, free: 3.215 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.085e-06/0.6522, allocations: 3.953 kB / 1.422 GB, free: 3.211 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-06/0.6523, allocations: 0 / 1.422 GB, free: 3.211 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.996e-06/0.6523, allocations: 0 / 1.422 GB, free: 3.211 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005402/0.6528, allocations: 455.1 kB / 1.422 GB, free: 2.707 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.6528, allocations: 0 / 1.422 GB, free: 2.707 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.502e-05/0.6529, allocations: 4 kB / 1.422 GB, free: 2.703 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.921e-05/0.6529, allocations: 24.84 kB / 1.423 GB, free: 2.676 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.653, allocations: 0 / 1.423 GB, free: 2.676 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001115/0.6541, allocations: 1.323 MB / 1.424 GB, free: 1.223 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6541, allocations: 0 / 1.424 GB, free: 1.223 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002602/0.6544, allocations: 224.7 kB / 1.424 GB, free: 0.9844 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 8.885e-05/0.6545, allocations: 96.91 kB / 1.424 GB, free: 0.8711 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.792e-05/0.6545, allocations: 4 kB / 1.424 GB, free: 0.8672 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001093/0.6546, allocations: 0 / 1.424 GB, free: 0.8672 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.657e-05/0.6546, allocations: 7.984 kB / 1.424 GB, free: 0.8594 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.02e-05/0.6547, allocations: 8 kB / 1.424 GB, free: 0.8516 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001431/0.6548, allocations: 140.3 kB / 1.424 GB, free: 0.7148 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6548, allocations: 0 / 1.424 GB, free: 0.7148 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003576/0.6552, allocations: 51.94 kB / 1.424 GB, free: 0.6641 MB / 0.9167 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 () * Number of clocked 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.0001511/0.6553, allocations: 109.6 kB / 1.424 GB, free: 0.5469 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0003831/0.6557, allocations: 202.5 kB / 1.425 GB, free: 344 kB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.6557, allocations: 0 / 1.425 GB, free: 344 kB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.6559, allocations: 159.3 kB / 1.425 GB, free: 172 kB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002822/0.6562, allocations: 32.06 kB / 1.425 GB, free: 136 kB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5873/1.243, allocations: 418.5 kB / 1.425 GB, free: 185 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002551/1.244, allocations: 0.7541 MB / 1.426 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001549/1.244, allocations: 22.12 kB / 1.426 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.506e-05/1.244, allocations: 16.03 kB / 1.426 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of SimCode: time 9.02e-07/1.244, allocations: 1.812 kB / 1.426 GB, free: 184.3 MB / 0.9167 GB Notification: Performance of Templates: time 0.004557/1.249, allocations: 1.619 MB / 1.428 GB, free: 184.3 MB / 0.9167 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