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.468/1.468, allocations: 249.5 MB / 257 MB, free: 6.875 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.001071/0.001071, allocations: 180.8 kB / 316.3 MB, free: 3.246 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.543/1.543, allocations: 205.3 MB / 0.5671 GB, free: 15.79 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.0008772/0.0008773, allocations: 87.55 kB / 0.6714 GB, free: 4.914 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.64e-05/1.643e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2107/0.2107, allocations: 106.3 MB / 0.8852 GB, free: 12.24 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7281/0.9389, allocations: 158.1 MB / 1.04 GB, free: 13.76 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.9392, allocations: 89.23 kB / 1.04 GB, free: 13.72 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.03828/0.9775, allocations: 16.01 MB / 1.055 GB, free: 0.5469 MB / 0.6667 GB Notification: Performance of FrontEnd: time 1.523e-06/0.9775, allocations: 0 / 1.055 GB, free: 0.5469 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 1.902e-05/0.9775, allocations: 4 kB / 1.055 GB, free: 0.543 MB / 0.6667 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.000861/0.9784, allocations: 0.5473 MB / 1.056 GB, free: 15.97 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.241e-05/0.9784, allocations: 8.031 kB / 1.056 GB, free: 15.96 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001023/0.9795, allocations: 135.5 kB / 1.056 GB, free: 15.83 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004326/0.9799, allocations: 300.4 kB / 1.056 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.026e-05/0.9799, allocations: 15.92 kB / 1.056 GB, free: 15.51 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.563e-05/0.98, allocations: 20 kB / 1.056 GB, free: 15.49 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004512/0.9805, allocations: 277.5 kB / 1.057 GB, free: 15.31 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005879/0.9811, allocations: 405.8 kB / 1.057 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.9811, allocations: 4 kB / 1.057 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.352e-05/0.9811, allocations: 0 / 1.057 GB, free: 14.97 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.76e-05/0.9812, allocations: 24.55 kB / 1.057 GB, free: 14.95 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.9832, allocations: 2.117 MB / 1.059 GB, free: 12.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003397/0.9836, allocations: 231 kB / 1.059 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002177/0.9838, allocations: 109.9 kB / 1.059 GB, free: 12.5 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.9838, allocations: 4 kB / 1.059 GB, free: 12.5 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.306e-05/0.9839, allocations: 30.56 kB / 1.059 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.9839, allocations: 0 / 1.059 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of matching and sorting (n=14): time 0.0003503/0.9842, allocations: 151 kB / 1.06 GB, free: 12.33 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.305e-05/0.9843, allocations: 59.34 kB / 1.06 GB, free: 12.26 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001834/0.9845, allocations: 191 kB / 1.06 GB, free: 12.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.864e-05/0.9845, allocations: 25.7 kB / 1.06 GB, free: 12.07 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.9846, allocations: 207.5 kB / 1.06 GB, free: 11.88 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.9846, allocations: 50.98 kB / 1.06 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.516e-06/0.9847, allocations: 0 / 1.06 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.9848, allocations: 329.5 kB / 1.06 GB, free: 11.52 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.636e-05/0.9849, allocations: 53.02 kB / 1.06 GB, free: 11.48 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001302/0.985, allocations: 142.1 kB / 1.061 GB, free: 11.33 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001167/0.9851, allocations: 76.72 kB / 1.061 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.9851, allocations: 0 / 1.061 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003371/0.9855, allocations: 231.6 kB / 1.061 GB, free: 11.07 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.9855, allocations: 11.98 kB / 1.061 GB, free: 11.06 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.486e-06/0.9855, allocations: 4 kB / 1.061 GB, free: 11.06 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001592/0.9857, allocations: 23.78 kB / 1.061 GB, free: 11.04 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000187/0.9859, allocations: 47.92 kB / 1.061 GB, free: 10.99 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001002/0.9869, allocations: 1.266 MB / 1.062 GB, free: 9.652 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.9871, allocations: 23.28 kB / 1.062 GB, free: 9.633 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.673e-05/0.9871, allocations: 8 kB / 1.062 GB, free: 9.625 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 9.991e-05/0.9872, allocations: 114.5 kB / 1.062 GB, free: 9.508 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.631e-05/0.9872, allocations: 27.7 kB / 1.062 GB, free: 9.48 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.371e-05/0.9873, allocations: 20.72 kB / 1.062 GB, free: 9.473 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.9873, allocations: 4 kB / 1.062 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.715e-06/0.9873, allocations: 0 / 1.062 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.916e-06/0.9873, allocations: 0 / 1.062 GB, free: 9.469 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007898/0.9881, allocations: 0.6372 MB / 1.063 GB, free: 8.836 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.97e-06/0.9881, allocations: 4 kB / 1.063 GB, free: 8.832 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.122e-05/0.9882, allocations: 23.92 kB / 1.063 GB, free: 8.809 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.392e-05/0.9883, allocations: 24.92 kB / 1.063 GB, free: 8.785 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.9883, allocations: 16 kB / 1.063 GB, free: 8.77 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009063/0.9893, allocations: 1.252 MB / 1.064 GB, free: 7.453 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.095e-06/0.9893, allocations: 7.969 kB / 1.064 GB, free: 7.445 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003819/0.9897, allocations: 370.5 kB / 1.065 GB, free: 7.051 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.9898, allocations: 107.9 kB / 1.065 GB, free: 6.93 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.438e-05/0.9898, allocations: 8.094 kB / 1.065 GB, free: 6.922 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.99, allocations: 15.92 kB / 1.065 GB, free: 6.906 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.822e-05/0.99, allocations: 10.98 kB / 1.065 GB, free: 6.898 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.042e-05/0.99, allocations: 8 kB / 1.065 GB, free: 6.891 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.0001512/0.9902, allocations: 147.8 kB / 1.065 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9902, allocations: 0 / 1.065 GB, free: 6.773 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0004148/0.9906, allocations: 79.69 kB / 1.065 GB, free: 6.695 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.0001606/0.9908, allocations: 103.1 kB / 1.065 GB, free: 6.582 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0004307/0.9912, allocations: 245.5 kB / 1.065 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.9912, allocations: 0.75 kB / 1.065 GB, free: 6.367 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0002034/0.9914, allocations: 171.5 kB / 1.066 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003684/0.9918, allocations: 47.95 kB / 1.066 GB, free: 6.168 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006307/0.9925, allocations: 371.8 kB / 1.066 GB, free: 5.801 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004063/0.9929, allocations: 0.8024 MB / 1.067 GB, free: 4.977 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 0.0001416/0.993, allocations: 46.05 kB / 1.067 GB, free: 4.93 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.217e-05/0.9931, allocations: 15.44 kB / 1.067 GB, free: 4.914 MB / 0.6823 GB Notification: Performance of SimCode: time 2.2e-07/0.9931, allocations: 0 / 1.067 GB, free: 4.914 MB / 0.6823 GB Notification: Performance of Templates: time 0.005214/0.9983, allocations: 2.128 MB / 1.069 GB, free: 2.816 MB / 0.6823 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