Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.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.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor") translateModel(Buildings.Electrical.DC.Loads.Examples.Resistor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sen.I|sen1.I",fileNamePrefix="Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.339/2.339, 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.001501/0.001501, allocations: 176 kB / 0.4902 GB, free: 2.227 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.732/1.732, allocations: 223.2 MB / 0.7992 GB, free: 14.71 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.001019/0.001019, allocations: 104.1 kB / 0.9396 GB, free: 1.891 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003569, allocations: 13.66 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2936/0.294, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2965/0.5906, allocations: 176.6 MB / 1.402 GB, free: 8.879 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004714/0.5911, allocations: 95.94 kB / 1.402 GB, free: 8.785 MB / 0.9011 GB [/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/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/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.08132/0.6725, allocations: 22.23 MB / 1.423 GB, free: 2.25 MB / 0.9167 GB Notification: Performance of FrontEnd: time 2.505e-06/0.6725, allocations: 0 / 1.423 GB, free: 2.25 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 3.242e-05/0.6726, allocations: 11.98 kB / 1.423 GB, free: 2.238 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: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001228/0.6738, allocations: 0.5768 MB / 1.424 GB, free: 1.613 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.6739, allocations: 12.56 kB / 1.424 GB, free: 1.602 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001114/0.675, allocations: 139.5 kB / 1.424 GB, free: 1.465 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005924/0.6756, allocations: 293.8 kB / 1.424 GB, free: 1.141 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.043e-05/0.6756, allocations: 16.66 kB / 1.424 GB, free: 1.125 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.402e-05/0.6757, allocations: 28 kB / 1.425 GB, free: 1.098 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008322/0.6765, allocations: 455.5 kB / 1.425 GB, free: 0.6172 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.96e-05/0.6766, allocations: 0 / 1.425 GB, free: 0.6172 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.249e-05/0.6766, allocations: 15.98 kB / 1.425 GB, free: 0.6016 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.894e-05/0.6767, allocations: 32.55 kB / 1.425 GB, free: 0.5664 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006095/0.6773, allocations: 313.9 kB / 1.425 GB, free: 268 kB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5527/1.23, allocations: 2.187 MB / 1.427 GB, free: 179.8 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003778/1.23, allocations: 241.4 kB / 1.428 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/1.231, allocations: 2.688 kB / 1.428 GB, free: 179.7 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.492e-05/1.231, allocations: 42.05 kB / 1.428 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=14): time 2.535e-06/1.231, allocations: 6.375 kB / 1.428 GB, free: 179.6 MB / 0.9167 GB Notification: Performance of matching and sorting (n=14): time 0.0006013/1.231, allocations: 308.2 kB / 1.428 GB, free: 179.5 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.452e-05/1.231, allocations: 55.25 kB / 1.428 GB, free: 179.4 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002931/1.232, allocations: 236.4 kB / 1.428 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.274e-05/1.232, allocations: 25.7 kB / 1.428 GB, free: 179.3 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/1.232, allocations: 207.3 kB / 1.428 GB, free: 179.2 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 5.22e-05/1.232, allocations: 53.89 kB / 1.429 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.252e-05/1.232, allocations: 3.438 kB / 1.429 GB, free: 179.1 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 0.0001147/1.232, allocations: 341.4 kB / 1.429 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001034/1.232, allocations: 61.31 kB / 1.429 GB, free: 178.8 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001178/1.232, allocations: 137.5 kB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/1.232, allocations: 87.25 kB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/1.232, allocations: 1.5 kB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003954/1.233, allocations: 270 kB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/1.233, allocations: 10.28 kB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/1.233, allocations: 6.438 kB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001751/1.233, allocations: 23.3 kB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001985/1.233, allocations: 48.44 kB / 1.429 GB, free: 178.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000868/1.234, allocations: 1.331 MB / 1.431 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002178/1.234, allocations: 27.59 kB / 1.431 GB, free: 177.4 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.894e-05/1.234, allocations: 15.36 kB / 1.431 GB, free: 177.4 MB / 0.9167 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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.000164/1.234, allocations: 163.6 kB / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.509e-05/1.234, allocations: 23.16 kB / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.159e-05/1.235, allocations: 30.02 kB / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/1.235, allocations: 6.562 kB / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/1.235, allocations: 0 / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.356e-06/1.235, allocations: 0 / 1.431 GB, free: 177.3 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007852/1.235, allocations: 0.633 MB / 1.432 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/1.235, allocations: 2.969 kB / 1.432 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/1.235, allocations: 20.92 kB / 1.432 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.327e-05/1.236, allocations: 27.72 kB / 1.432 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.805e-05/1.236, allocations: 11.22 kB / 1.432 GB, free: 176.9 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008406/1.236, allocations: 1.321 MB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/1.236, allocations: 0.75 kB / 1.433 GB, free: 175.7 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003549/1.237, allocations: 349.5 kB / 1.433 GB, free: 175.4 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000114/1.237, allocations: 117.6 kB / 1.433 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.971e-05/1.237, allocations: 7.172 kB / 1.433 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001654/1.237, allocations: 13.25 kB / 1.433 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.312e-05/1.237, allocations: 17.11 kB / 1.433 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.075e-05/1.237, allocations: 3.25 kB / 1.433 GB, free: 175.3 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 0.0001542/1.237, allocations: 192.2 kB / 1.434 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of sort global known variables: time 2.9e-07/1.237, allocations: 0 / 1.434 GB, free: 175.2 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0003895/1.238, allocations: 82.69 kB / 1.434 GB, free: 175.2 MB / 0.9167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 (13): * Single equations (assignments): 12 * 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.0001022/1.238, allocations: 107.6 kB / 1.434 GB, free: 175.1 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0004257/1.238, allocations: 266.4 kB / 1.434 GB, free: 175 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.616e-06/1.238, allocations: 3.25 kB / 1.434 GB, free: 175 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 0.0002065/1.239, allocations: 184.7 kB / 1.434 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003714/1.239, allocations: 48.61 kB / 1.434 GB, free: 174.9 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009547/1.24, allocations: 0.627 MB / 1.435 GB, free: 174.6 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000287/1.24, allocations: 0.8001 MB / 1.436 GB, free: 173.9 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0001743/1.24, allocations: 46.66 kB / 1.436 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.754e-05/1.24, allocations: 21.83 kB / 1.436 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of SimCode: time 2.9e-07/1.24, allocations: 0 / 1.436 GB, free: 173.8 MB / 0.9167 GB Notification: Performance of Templates: time 0.00687/1.247, allocations: 2.431 MB / 1.438 GB, free: 173.7 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_latest_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches