Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.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.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") translateModel(Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|grid.P.real|grid.P.apparent|resistor.S.1.|resistor.S.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.474/1.474, allocations: 249.5 MB / 257 MB, free: 6.949 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.001111/0.001111, allocations: 180.9 kB / 316.3 MB, free: 3.266 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.408/1.408, allocations: 205.3 MB / 0.5671 GB, free: 15.8 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.001411/0.001412, allocations: 89.73 kB / 0.6714 GB, free: 4.922 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.18e-05/1.173e-05, allocations: 0 / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1804, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6766/0.857, allocations: 162.3 MB / 1.044 GB, free: 9.797 MB / 0.6667 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002959/0.8574, allocations: 94.39 kB / 1.044 GB, free: 9.746 MB / 0.6667 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Electrical/AC/OnePhase/Conversion/ACDCConverter.mo:43:5-43:39:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.root(terminal_p.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.04312/0.9005, allocations: 18.08 MB / 1.061 GB, free: 10.85 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.353e-06/0.9006, allocations: 4 kB / 1.061 GB, free: 10.84 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 1.637e-05/0.9006, allocations: 4 kB / 1.061 GB, free: 10.84 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.000867/0.9015, allocations: 0.5207 MB / 1.062 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.191e-05/0.9015, allocations: 12.03 kB / 1.062 GB, free: 10.28 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008454/0.9024, allocations: 103.6 kB / 1.062 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003395/0.9027, allocations: 263.1 kB / 1.062 GB, free: 9.902 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.83e-05/0.9028, allocations: 4 kB / 1.062 GB, free: 9.898 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.183e-05/0.9028, allocations: 12 kB / 1.062 GB, free: 9.887 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003679/0.9032, allocations: 233.4 kB / 1.063 GB, free: 9.738 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004518/0.9036, allocations: 314.9 kB / 1.063 GB, free: 9.484 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.9037, allocations: 0 / 1.063 GB, free: 9.484 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.819e-05/0.9037, allocations: 4 kB / 1.063 GB, free: 9.48 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.482e-05/0.9037, allocations: 24.23 kB / 1.063 GB, free: 9.461 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.9057, allocations: 1.683 MB / 1.065 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004133/0.9061, allocations: 325 kB / 1.065 GB, free: 7.527 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.9063, allocations: 95.17 kB / 1.065 GB, free: 7.457 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001015/0.9064, allocations: 92.84 kB / 1.065 GB, free: 7.352 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.9064, allocations: 30.56 kB / 1.065 GB, free: 7.312 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=16): time 1.513e-06/0.9064, allocations: 0 / 1.065 GB, free: 7.312 MB / 0.6823 GB Notification: Performance of matching and sorting (n=23): time 0.001568/0.908, allocations: 0.6891 MB / 1.066 GB, free: 6.75 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.711e-05/0.908, allocations: 81.3 kB / 1.066 GB, free: 6.652 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001601/0.9082, allocations: 178.8 kB / 1.066 GB, free: 6.492 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.731e-05/0.9083, allocations: 25.7 kB / 1.066 GB, free: 6.461 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 8.533e-05/0.9084, allocations: 166.5 kB / 1.066 GB, free: 6.312 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 6.109e-05/0.9084, allocations: 85 kB / 1.066 GB, free: 6.238 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.418e-05/0.9084, allocations: 0 / 1.066 GB, free: 6.238 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.9086, allocations: 328.6 kB / 1.067 GB, free: 5.918 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000159/0.9087, allocations: 130 kB / 1.067 GB, free: 5.836 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002169/0.9089, allocations: 196.8 kB / 1.067 GB, free: 5.66 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003598/0.9093, allocations: 188.1 kB / 1.067 GB, free: 5.535 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.9093, allocations: 0 / 1.067 GB, free: 5.535 MB / 0.6823 GB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0009016/0.9102, allocations: 0.5036 MB / 1.068 GB, free: 5.129 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.9103, allocations: 4 kB / 1.068 GB, free: 5.125 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.9103, allocations: 8.297 kB / 1.068 GB, free: 5.117 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003962/0.9107, allocations: 135.7 kB / 1.068 GB, free: 5 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.9109, allocations: 59.53 kB / 1.068 GB, free: 4.945 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002621/0.9136, allocations: 3.849 MB / 1.071 GB, free: 1.035 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001873/0.9138, allocations: 20.03 kB / 1.072 GB, free: 1.016 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.391e-05/0.9138, allocations: 8 kB / 1.072 GB, free: 1.008 MB / 0.6823 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: $DER.idealACDCConverter1.P_n[1]:DUMMY_DER(fixed = false ) "Power transmitted at pin n (primary)" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 28 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0001681/0.914, allocations: 116.1 kB / 1.072 GB, free: 0.8906 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.955e-05/0.9141, allocations: 27.66 kB / 1.072 GB, free: 0.8633 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008819/0.9149, allocations: 464 kB / 1.072 GB, free: 0.5039 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-06/0.915, allocations: 3.953 kB / 1.072 GB, free: 0.5 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.915, allocations: 4 kB / 1.072 GB, free: 0.4961 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.915, allocations: 0 / 1.072 GB, free: 0.4961 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001493/0.9165, allocations: 0.9607 MB / 1.073 GB, free: 15.64 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.9165, allocations: 4 kB / 1.073 GB, free: 15.64 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001275/0.9166, allocations: 31.92 kB / 1.073 GB, free: 15.61 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003302/0.917, allocations: 137.7 kB / 1.073 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.917, allocations: 7.953 kB / 1.073 GB, free: 15.48 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002547/0.9196, allocations: 3.839 MB / 1.077 GB, free: 11.57 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.23e-06/0.9196, allocations: 4.031 kB / 1.077 GB, free: 11.57 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009258/0.9205, allocations: 0.7255 MB / 1.078 GB, free: 10.84 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/0.9207, allocations: 127.1 kB / 1.078 GB, free: 10.71 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.9207, allocations: 4 kB / 1.078 GB, free: 10.7 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002156/0.9209, allocations: 15.98 kB / 1.078 GB, free: 10.69 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.231e-05/0.921, allocations: 27.61 kB / 1.078 GB, free: 10.66 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.783e-05/0.921, allocations: 8 kB / 1.078 GB, free: 10.66 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000127/0.9212, allocations: 147.1 kB / 1.078 GB, free: 10.54 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.914e-06/0.9212, allocations: 4 kB / 1.078 GB, free: 10.53 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.000582/0.9217, allocations: 91.88 kB / 1.078 GB, free: 10.44 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 17 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.000249/0.922, allocations: 138.8 kB / 1.078 GB, free: 10.3 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0008024/0.9228, allocations: 0.5257 MB / 1.079 GB, free: 9.852 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.9228, allocations: 0 / 1.079 GB, free: 9.852 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004677/0.9233, allocations: 371.7 kB / 1.079 GB, free: 9.516 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003444/0.9237, allocations: 29.84 kB / 1.079 GB, free: 9.492 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007792/0.9245, allocations: 457 kB / 1.08 GB, free: 9.059 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003629/0.9248, allocations: 0.7953 MB / 1.08 GB, free: 8.25 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0001752/0.925, allocations: 54.03 kB / 1.08 GB, free: 8.199 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.966e-05/0.9251, allocations: 23.42 kB / 1.08 GB, free: 8.176 MB / 0.698 GB Notification: Performance of SimCode: time 2.3e-07/0.9251, allocations: 0 / 1.08 GB, free: 8.176 MB / 0.698 GB Notification: Performance of Templates: time 0.007265/0.9323, allocations: 3.703 MB / 1.084 GB, free: 4.512 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Examples_GridDCLoad.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Examples.GridDCLoad.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches