Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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_maint.7.0.x_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_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.461/1.461, allocations: 249.3 MB / 261.8 MB, free: 5.902 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001065/0.001065, allocations: 176.9 kB / 321.3 MB, free: 14.65 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.486/1.486, allocations: 205.2 MB / 0.572 GB, free: 10.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001038/0.001038, allocations: 94.48 kB / 0.6764 GB, free: 15.68 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 4.503e-05/4.515e-05, allocations: 0 / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2212/0.2212, allocations: 106.3 MB / 0.8918 GB, free: 6.688 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.884/1.105, allocations: 157.8 MB / 1.046 GB, free: 11.02 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002994/1.106, allocations: 89.75 kB / 1.046 GB, free: 10.97 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/Interfaces/Source.mo:30:9-30: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 7.0.3-maint.7.0.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 7.0.3-maint.7.0.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 - DAE generated: time 0.03744/1.143, allocations: 16.09 MB / 1.062 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.322e-06/1.143, allocations: 0 / 1.062 GB, free: 13.62 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.86e-05/1.143, allocations: 4 kB / 1.062 GB, free: 13.62 MB / 0.6823 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.0007708/1.144, allocations: 0.5525 MB / 1.062 GB, free: 13.05 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/1.144, allocations: 8.031 kB / 1.062 GB, free: 13.04 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009497/1.145, allocations: 135.5 kB / 1.062 GB, free: 12.91 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000435/1.145, allocations: 288.9 kB / 1.063 GB, free: 12.61 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.981e-05/1.145, allocations: 23.84 kB / 1.063 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.495e-05/1.145, allocations: 30.56 kB / 1.063 GB, free: 12.57 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006397/1.146, allocations: 449.6 kB / 1.063 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.129e-05/1.146, allocations: 0 / 1.063 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.678e-05/1.146, allocations: 14.67 kB / 1.063 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.167e-05/1.146, allocations: 24.42 kB / 1.063 GB, free: 12.18 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004451/1.147, allocations: 313.1 kB / 1.063 GB, free: 11.96 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002075/1.149, allocations: 2.186 MB / 1.066 GB, free: 9.766 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003498/1.149, allocations: 249.9 kB / 1.066 GB, free: 9.539 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002215/1.149, allocations: 111.9 kB / 1.066 GB, free: 9.453 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/1.149, allocations: 7.984 kB / 1.066 GB, free: 9.445 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/1.149, allocations: 30.56 kB / 1.066 GB, free: 9.406 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=14): time 1.593e-06/1.149, allocations: 0 / 1.066 GB, free: 9.406 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14): time 0.0003767/1.15, allocations: 164.6 kB / 1.066 GB, free: 9.266 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/1.15, allocations: 59.34 kB / 1.066 GB, free: 9.195 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002572/1.15, allocations: 240.4 kB / 1.066 GB, free: 8.992 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.023e-05/1.15, allocations: 28.89 kB / 1.066 GB, free: 8.961 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/1.15, allocations: 206.4 kB / 1.067 GB, free: 8.785 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.891e-05/1.15, allocations: 50.05 kB / 1.067 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.576e-06/1.15, allocations: 2.625 kB / 1.067 GB, free: 8.742 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001382/1.15, allocations: 337 kB / 1.067 GB, free: 8.414 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.484e-05/1.151, allocations: 57.89 kB / 1.067 GB, free: 8.375 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/1.151, allocations: 142 kB / 1.067 GB, free: 8.223 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001287/1.151, allocations: 81.17 kB / 1.067 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/1.151, allocations: 0 / 1.067 GB, free: 8.164 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003734/1.151, allocations: 258.5 kB / 1.068 GB, free: 7.949 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/1.151, allocations: 4 kB / 1.068 GB, free: 7.945 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/1.151, allocations: 4 kB / 1.068 GB, free: 7.941 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001718/1.151, allocations: 36.66 kB / 1.068 GB, free: 7.906 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/1.152, allocations: 43.92 kB / 1.068 GB, free: 7.863 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/1.153, allocations: 1.323 MB / 1.069 GB, free: 6.461 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/1.153, allocations: 30.58 kB / 1.069 GB, free: 6.434 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/1.153, allocations: 15.81 kB / 1.069 GB, free: 6.422 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete 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 7.814e-05/1.153, allocations: 112.3 kB / 1.069 GB, free: 6.309 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.684e-05/1.153, allocations: 23.72 kB / 1.069 GB, free: 6.285 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.666e-05/1.153, allocations: 27.08 kB / 1.069 GB, free: 6.27 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.186e-05/1.153, allocations: 4.062 kB / 1.069 GB, free: 6.266 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/1.153, allocations: 8.094 kB / 1.069 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/1.153, allocations: 0 / 1.069 GB, free: 6.258 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008398/1.154, allocations: 0.7033 MB / 1.07 GB, free: 5.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/1.154, allocations: 4 kB / 1.07 GB, free: 5.559 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.048e-05/1.154, allocations: 27.44 kB / 1.07 GB, free: 5.535 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.365e-05/1.154, allocations: 20.84 kB / 1.07 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.16e-05/1.154, allocations: 3.5 kB / 1.07 GB, free: 5.512 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009391/1.155, allocations: 1.317 MB / 1.071 GB, free: 4.109 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/1.155, allocations: 3.938 kB / 1.071 GB, free: 4.105 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003512/1.155, allocations: 385.3 kB / 1.072 GB, free: 3.699 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001026/1.156, allocations: 119.1 kB / 1.072 GB, free: 3.57 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/1.156, allocations: 7.688 kB / 1.072 GB, free: 3.566 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/1.156, allocations: 8 kB / 1.072 GB, free: 3.559 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.142e-05/1.156, allocations: 23.25 kB / 1.072 GB, free: 3.539 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/1.156, allocations: 8 kB / 1.072 GB, free: 3.531 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001656/1.156, allocations: 189.4 kB / 1.072 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.4e-07/1.156, allocations: 0 / 1.072 GB, free: 3.379 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003564/1.156, allocations: 74.66 kB / 1.072 GB, free: 3.312 MB / 0.6823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * 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.0001306/1.157, allocations: 99.19 kB / 1.072 GB, free: 3.203 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004096/1.157, allocations: 279.4 kB / 1.072 GB, free: 2.957 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/1.157, allocations: 4 kB / 1.072 GB, free: 2.953 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001874/1.157, allocations: 175.4 kB / 1.072 GB, free: 2.785 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003489/1.158, allocations: 67.14 kB / 1.073 GB, free: 2.738 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006011/1.158, allocations: 363.8 kB / 1.073 GB, free: 2.383 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003882/1.159, allocations: 0.8081 MB / 1.074 GB, free: 1.555 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001392/1.159, allocations: 42.05 kB / 1.074 GB, free: 1.512 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.727e-05/1.159, allocations: 19.44 kB / 1.074 GB, free: 1.492 MB / 0.6823 GB Notification: Performance of SimCode: time 4.41e-07/1.159, allocations: 0 / 1.074 GB, free: 1.492 MB / 0.6823 GB Notification: Performance of Templates: time 0.005446/1.164, allocations: 2.5 MB / 1.076 GB, free: 15.02 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_DC_Loads_Examples_Resistor.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.DC.Loads.Examples.Resistor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches