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.41/1.41, allocations: 251.9 MB / 266.9 MB, free: 10.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001457/0.001457, allocations: 179.8 kB / 326.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.525/1.525, allocations: 205.4 MB / 0.5775 GB, free: 20.53 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.0008691/0.0008689, allocations: 90.34 kB / 0.6821 GB, free: 13.33 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003351/0.0003348, allocations: 9.781 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2385/0.2389, allocations: 106.3 MB / 0.9001 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1951/0.434, allocations: 157.9 MB / 1.054 GB, free: 2.219 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002944/0.4343, allocations: 91.95 kB / 1.054 GB, free: 2.129 MB / 0.698 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.5037/0.938, allocations: 16.19 MB / 1.07 GB, free: 154.1 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.072e-06/0.938, allocations: 3.938 kB / 1.07 GB, free: 154.1 MB / 0.698 GB Notification: Performance of Transformations before backend: time 2.281e-05/0.938, allocations: 6.719 kB / 1.07 GB, free: 154.1 MB / 0.698 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.0009296/0.939, allocations: 0.5814 MB / 1.071 GB, free: 153.6 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/0.939, allocations: 9.094 kB / 1.071 GB, free: 153.6 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001056/0.9401, allocations: 145.1 kB / 1.071 GB, free: 153.6 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004286/0.9405, allocations: 290.5 kB / 1.071 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.837e-05/0.9406, allocations: 24.95 kB / 1.071 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.369e-05/0.9407, allocations: 26.19 kB / 1.071 GB, free: 153.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000748/0.9414, allocations: 453.4 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.328e-05/0.9414, allocations: 0.9062 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.826e-05/0.9415, allocations: 12.25 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.359e-05/0.9415, allocations: 22.97 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005202/0.9421, allocations: 318.8 kB / 1.072 GB, free: 153.2 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001963/0.944, allocations: 2.188 MB / 1.074 GB, free: 151.4 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003566/0.9444, allocations: 251.7 kB / 1.074 GB, free: 151.2 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.9444, allocations: 6.5 kB / 1.074 GB, free: 151.2 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.989e-05/0.9445, allocations: 31.31 kB / 1.074 GB, free: 151.2 MB / 0.698 GB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.9445, allocations: 0.6875 kB / 1.074 GB, free: 151.2 MB / 0.698 GB Notification: Performance of matching and sorting (n=14): time 0.0006194/0.9451, allocations: 308.6 kB / 1.075 GB, free: 151 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.9451, allocations: 56.44 kB / 1.075 GB, free: 150.9 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.9454, allocations: 246.2 kB / 1.075 GB, free: 150.8 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.665e-05/0.9454, allocations: 31.02 kB / 1.075 GB, free: 150.8 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 9.894e-05/0.9455, allocations: 207 kB / 1.075 GB, free: 150.6 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 3.517e-05/0.9456, allocations: 50.67 kB / 1.075 GB, free: 150.6 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.036e-06/0.9456, allocations: 1.5 kB / 1.075 GB, free: 150.6 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.873e-05/0.9457, allocations: 336 kB / 1.076 GB, free: 150.2 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.526e-05/0.9458, allocations: 60.36 kB / 1.076 GB, free: 150.2 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001352/0.9459, allocations: 144.2 kB / 1.076 GB, free: 150.1 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001317/0.946, allocations: 81.89 kB / 1.076 GB, free: 150.1 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.946, allocations: 1.344 kB / 1.076 GB, free: 150.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003928/0.9464, allocations: 267.1 kB / 1.076 GB, free: 150 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.935e-05/0.9465, allocations: 6.75 kB / 1.076 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.027e-06/0.9465, allocations: 2.594 kB / 1.076 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001637/0.9467, allocations: 26.94 kB / 1.076 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002098/0.9469, allocations: 49.59 kB / 1.076 GB, free: 150 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007902/0.9477, allocations: 1.322 MB / 1.077 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001603/0.9478, allocations: 31.27 kB / 1.078 GB, free: 148.7 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.941e-05/0.9479, allocations: 12.03 kB / 1.078 GB, free: 148.7 MB / 0.698 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.0001489/0.948, allocations: 169.7 kB / 1.078 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.741e-05/0.9481, allocations: 23.94 kB / 1.078 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.41e-05/0.9481, allocations: 31.77 kB / 1.078 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.9482, allocations: 1.375 kB / 1.078 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.9482, allocations: 5.375 kB / 1.078 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/0.9482, allocations: 0 / 1.078 GB, free: 148.5 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007482/0.9489, allocations: 0.6368 MB / 1.078 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.9489, allocations: 1.656 kB / 1.078 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001131/0.9491, allocations: 24.47 kB / 1.078 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.776e-05/0.9491, allocations: 28.09 kB / 1.078 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.253e-05/0.9492, allocations: 1.562 kB / 1.078 GB, free: 148.1 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006771/0.9498, allocations: 1.33 MB / 1.08 GB, free: 146.7 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.9499, allocations: 2.312 kB / 1.08 GB, free: 146.7 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003078/0.9502, allocations: 356.1 kB / 1.08 GB, free: 146.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 9.41e-05/0.9503, allocations: 109.2 kB / 1.08 GB, free: 146.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.635e-05/0.9503, allocations: 9.109 kB / 1.08 GB, free: 146.3 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001546/0.9505, allocations: 11.55 kB / 1.08 GB, free: 146.3 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.951e-05/0.9505, allocations: 13.36 kB / 1.08 GB, free: 146.3 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.156e-05/0.9505, allocations: 4.531 kB / 1.08 GB, free: 146.3 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0001734/0.9507, allocations: 188.5 kB / 1.08 GB, free: 146.2 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9507, allocations: 3.938 kB / 1.08 GB, free: 146.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0003925/0.9511, allocations: 80.22 kB / 1.08 GB, free: 146.2 MB / 0.698 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.00012/0.9512, allocations: 107.7 kB / 1.081 GB, free: 146.1 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0004546/0.9517, allocations: 275.3 kB / 1.081 GB, free: 146 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.54e-06/0.9517, allocations: 4.922 kB / 1.081 GB, free: 146 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001947/0.9519, allocations: 182 kB / 1.081 GB, free: 145.9 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003724/0.9523, allocations: 52.42 kB / 1.081 GB, free: 145.8 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009617/0.9533, allocations: 0.6227 MB / 1.082 GB, free: 145.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002816/0.9536, allocations: 0.8042 MB / 1.082 GB, free: 144.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001615/0.9537, allocations: 47.38 kB / 1.083 GB, free: 144.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.65e-05/0.9538, allocations: 19.38 kB / 1.083 GB, free: 144.6 MB / 0.698 GB Notification: Performance of SimCode: time 2.9e-07/0.9538, allocations: 0 / 1.083 GB, free: 144.6 MB / 0.698 GB Notification: Performance of Templates: time 0.005758/0.9596, allocations: 2.448 MB / 1.085 GB, free: 143.4 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