Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z1.i.1.|Z1.i.2.|Z2.i.1.|Z2.i.2.|Z3.i.1.|Z3.i.2.|Z4.i.1.|Z4.i.2.|Z5.i.1.|Z5.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.466/1.466, allocations: 249.3 MB / 261.8 MB, free: 5.941 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.0009519/0.0009519, allocations: 186.5 kB / 321.3 MB, free: 14.62 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.634/1.634, allocations: 205.2 MB / 0.572 GB, free: 10.6 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.001225/0.001224, allocations: 94.45 kB / 0.6764 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.113e-05/3.115e-05, allocations: 4 kB / 0.7879 GB, free: 97.08 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2216, allocations: 106.3 MB / 0.8918 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7312/0.9528, allocations: 147.4 MB / 1.036 GB, free: 4.621 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.9532, allocations: 90.88 kB / 1.036 GB, free: 4.57 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.06931/1.022, allocations: 29.47 MB / 1.065 GB, free: 11.84 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.313e-06/1.023, allocations: 4 kB / 1.065 GB, free: 11.83 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.63e-05/1.023, allocations: 19.98 kB / 1.065 GB, free: 11.81 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001642/1.024, allocations: 0.7729 MB / 1.065 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/1.024, allocations: 8.031 kB / 1.065 GB, free: 11.02 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001418/1.026, allocations: 203 kB / 1.066 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008907/1.027, allocations: 485.7 kB / 1.066 GB, free: 10.36 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.799e-05/1.027, allocations: 39.86 kB / 1.066 GB, free: 10.33 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001103/1.027, allocations: 44.47 kB / 1.066 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/1.028, allocations: 0.915 MB / 1.067 GB, free: 9.383 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.856e-05/1.028, allocations: 7.938 kB / 1.067 GB, free: 9.375 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.027e-05/1.028, allocations: 25.86 kB / 1.067 GB, free: 9.363 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.204e-05/1.028, allocations: 60.11 kB / 1.067 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000839/1.029, allocations: 0.5499 MB / 1.068 GB, free: 8.922 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004797/1.034, allocations: 5.655 MB / 1.073 GB, free: 3.285 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008854/1.035, allocations: 460.8 kB / 1.074 GB, free: 2.961 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003429/1.035, allocations: 222 kB / 1.074 GB, free: 2.816 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 3.258e-05/1.035, allocations: 7.984 kB / 1.074 GB, free: 2.809 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.868e-05/1.035, allocations: 33.88 kB / 1.074 GB, free: 2.77 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=32): time 2.765e-06/1.035, allocations: 0 / 1.074 GB, free: 2.77 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33): time 0.00168/1.037, allocations: 0.8433 MB / 1.075 GB, free: 2.082 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/1.037, allocations: 55.41 kB / 1.075 GB, free: 2.016 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004689/1.037, allocations: 428.9 kB / 1.075 GB, free: 1.668 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.743e-05/1.038, allocations: 31.83 kB / 1.075 GB, free: 1.637 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002153/1.038, allocations: 343.4 kB / 1.076 GB, free: 1.383 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 9.255e-05/1.038, allocations: 120.3 kB / 1.076 GB, free: 1.281 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/1.038, allocations: 6.25 kB / 1.076 GB, free: 1.281 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001599/1.038, allocations: 362.4 kB / 1.076 GB, free: 0.9414 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002651/1.038, allocations: 188.1 kB / 1.076 GB, free: 0.8203 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003891/1.039, allocations: 406.4 kB / 1.077 GB, free: 404 kB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003565/1.039, allocations: 260.3 kB / 1.077 GB, free: 212 kB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.12e-06/1.039, allocations: 4 kB / 1.077 GB, free: 208 kB / 0.6823 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001229/1.04, allocations: 0.7582 MB / 1.078 GB, free: 15.59 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/1.04, allocations: 11.98 kB / 1.078 GB, free: 15.57 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.317e-06/1.04, allocations: 4 kB / 1.078 GB, free: 15.57 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004762/1.041, allocations: 148.7 kB / 1.078 GB, free: 15.43 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004436/1.041, allocations: 118.8 kB / 1.078 GB, free: 15.32 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003163/1.044, allocations: 4.032 MB / 1.082 GB, free: 11.07 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004175/1.045, allocations: 33.98 kB / 1.082 GB, free: 11.04 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.184e-05/1.045, allocations: 27.2 kB / 1.082 GB, free: 11.02 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001428/1.045, allocations: 142.2 kB / 1.082 GB, free: 10.89 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.804e-05/1.045, allocations: 55.34 kB / 1.082 GB, free: 10.83 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00104/1.046, allocations: 0.5946 MB / 1.083 GB, free: 10.38 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/1.046, allocations: 7.984 kB / 1.083 GB, free: 10.38 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/1.046, allocations: 0 / 1.083 GB, free: 10.38 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/1.046, allocations: 7.891 kB / 1.083 GB, free: 10.37 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001758/1.048, allocations: 1.246 MB / 1.084 GB, free: 9.25 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.662e-06/1.048, allocations: 7.984 kB / 1.084 GB, free: 9.242 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/1.048, allocations: 51.95 kB / 1.084 GB, free: 9.191 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003936/1.049, allocations: 148.3 kB / 1.084 GB, free: 9.031 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/1.049, allocations: 8 kB / 1.084 GB, free: 9.023 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00302/1.052, allocations: 4.017 MB / 1.088 GB, free: 4.609 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.843e-06/1.052, allocations: 16.02 kB / 1.088 GB, free: 4.594 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/1.053, allocations: 0.7861 MB / 1.089 GB, free: 3.711 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002357/1.053, allocations: 164.3 kB / 1.089 GB, free: 3.531 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.827e-05/1.053, allocations: 15.98 kB / 1.089 GB, free: 3.516 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/1.053, allocations: 23.91 kB / 1.089 GB, free: 3.492 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.937e-05/1.054, allocations: 27.97 kB / 1.089 GB, free: 3.465 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.019e-05/1.054, allocations: 8 kB / 1.089 GB, free: 3.457 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000337/1.054, allocations: 325.6 kB / 1.089 GB, free: 3.141 MB / 0.698 GB Notification: Performance of sort global known variables: time 2e-07/1.054, allocations: 4 kB / 1.089 GB, free: 3.137 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006105/1.055, allocations: 152 kB / 1.089 GB, free: 2.988 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001789/1.055, allocations: 117.4 kB / 1.09 GB, free: 2.863 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001303/1.056, allocations: 0.9979 MB / 1.091 GB, free: 1.785 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/1.056, allocations: 128 / 1.091 GB, free: 1.785 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.000812/1.057, allocations: 0.7377 MB / 1.091 GB, free: 0.9648 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008067/1.058, allocations: 177.7 kB / 1.091 GB, free: 0.7969 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001191/1.059, allocations: 0.7497 MB / 1.092 GB, free: 0 / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004797/1.059, allocations: 0.9219 MB / 1.093 GB, free: 15.05 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.0003154/1.06, allocations: 113.2 kB / 1.093 GB, free: 14.93 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.476e-05/1.06, allocations: 35.44 kB / 1.093 GB, free: 14.9 MB / 0.7136 GB Notification: Performance of SimCode: time 2.31e-07/1.06, allocations: 4 kB / 1.093 GB, free: 14.89 MB / 0.7136 GB Notification: Performance of Templates: time 0.0119/1.072, allocations: 7.054 MB / 1.1 GB, free: 7.902 MB / 0.7136 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Loads_Examples_TestImpedance.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches