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.431/1.431, allocations: 249.5 MB / 257 MB, free: 6.91 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.001026/0.001026, allocations: 184.8 kB / 316.3 MB, free: 3.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.613/1.613, allocations: 205.3 MB / 0.5671 GB, free: 15.83 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.0008163/0.0008162, allocations: 84.91 kB / 0.6714 GB, free: 4.949 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.289e-05/2.291e-05, allocations: 4 kB / 0.7814 GB, free: 102.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.2343, allocations: 106.3 MB / 0.8852 GB, free: 12.27 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7711/1.005, allocations: 147.7 MB / 1.029 GB, free: 7.418 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002477/1.006, allocations: 98.55 kB / 1.03 GB, free: 7.359 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.06841/1.074, allocations: 29.34 MB / 1.058 GB, free: 14.93 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.713e-06/1.074, allocations: 0 / 1.058 GB, free: 14.93 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.301e-05/1.074, allocations: 23.92 kB / 1.058 GB, free: 14.91 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.001361/1.076, allocations: 0.7735 MB / 1.059 GB, free: 14.13 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/1.076, allocations: 8.031 kB / 1.059 GB, free: 14.12 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001253/1.077, allocations: 203 kB / 1.059 GB, free: 13.93 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007561/1.078, allocations: 489.8 kB / 1.06 GB, free: 13.45 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.8e-05/1.078, allocations: 16 kB / 1.06 GB, free: 13.44 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.123e-05/1.078, allocations: 27.91 kB / 1.06 GB, free: 13.41 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006915/1.079, allocations: 418.3 kB / 1.06 GB, free: 13.14 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001094/1.08, allocations: 0.8526 MB / 1.061 GB, free: 12.26 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.896e-05/1.08, allocations: 7.938 kB / 1.061 GB, free: 12.25 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.066e-05/1.08, allocations: 11.94 kB / 1.061 GB, free: 12.24 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-05/1.08, allocations: 52.62 kB / 1.061 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004422/1.084, allocations: 5.546 MB / 1.066 GB, free: 6.641 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005356/1.085, allocations: 440 kB / 1.067 GB, free: 6.336 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002568/1.085, allocations: 209 kB / 1.067 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/1.085, allocations: 8 kB / 1.067 GB, free: 6.191 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/1.085, allocations: 38.44 kB / 1.067 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=32): time 2.044e-06/1.085, allocations: 0 / 1.067 GB, free: 6.148 MB / 0.6823 GB Notification: Performance of matching and sorting (n=33): time 0.001382/1.087, allocations: 0.8136 MB / 1.068 GB, free: 5.473 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.46e-05/1.087, allocations: 59.36 kB / 1.068 GB, free: 5.402 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003209/1.087, allocations: 349.6 kB / 1.068 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/1.087, allocations: 29.7 kB / 1.068 GB, free: 5.086 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001796/1.087, allocations: 345.7 kB / 1.069 GB, free: 4.824 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/1.087, allocations: 116.5 kB / 1.069 GB, free: 4.723 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.88e-05/1.087, allocations: 0 / 1.069 GB, free: 4.723 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001464/1.087, allocations: 361.2 kB / 1.069 GB, free: 4.383 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002209/1.088, allocations: 174.7 kB / 1.069 GB, free: 4.273 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003753/1.088, allocations: 391 kB / 1.07 GB, free: 3.867 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003023/1.088, allocations: 232.6 kB / 1.07 GB, free: 3.707 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/1.088, allocations: 4 kB / 1.07 GB, free: 3.703 MB / 0.6823 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001012/1.089, allocations: 0.6945 MB / 1.071 GB, free: 3.129 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.016e-05/1.089, allocations: 8 kB / 1.071 GB, free: 3.121 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/1.089, allocations: 8 kB / 1.071 GB, free: 3.113 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004516/1.09, allocations: 149.1 kB / 1.071 GB, free: 2.973 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004187/1.09, allocations: 111.4 kB / 1.071 GB, free: 2.867 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002911/1.093, allocations: 3.876 MB / 1.075 GB, free: 14.8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003345/1.094, allocations: 19.97 kB / 1.075 GB, free: 14.78 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.55e-05/1.094, allocations: 33.05 kB / 1.075 GB, free: 14.75 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.0001368/1.094, allocations: 125.2 kB / 1.075 GB, free: 14.63 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.02e-05/1.094, allocations: 55.34 kB / 1.075 GB, free: 14.57 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00091/1.095, allocations: 0.5563 MB / 1.075 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/1.095, allocations: 4 kB / 1.075 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/1.095, allocations: 0 / 1.075 GB, free: 14.14 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.24e-06/1.095, allocations: 4 kB / 1.075 GB, free: 14.13 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001584/1.096, allocations: 1.15 MB / 1.076 GB, free: 13.14 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/1.096, allocations: 4 kB / 1.077 GB, free: 13.13 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002506/1.097, allocations: 55.08 kB / 1.077 GB, free: 13.08 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003663/1.097, allocations: 140.6 kB / 1.077 GB, free: 12.95 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.193e-05/1.097, allocations: 4 kB / 1.077 GB, free: 12.95 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002782/1.1, allocations: 3.862 MB / 1.08 GB, free: 8.902 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.336e-06/1.1, allocations: 0 / 1.08 GB, free: 8.902 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009245/1.101, allocations: 0.7494 MB / 1.081 GB, free: 8.18 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/1.101, allocations: 174.5 kB / 1.081 GB, free: 8.004 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.342e-05/1.101, allocations: 4 kB / 1.081 GB, free: 8 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002306/1.101, allocations: 15.97 kB / 1.081 GB, free: 7.984 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.073e-05/1.101, allocations: 31.36 kB / 1.081 GB, free: 7.957 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/1.101, allocations: 11.44 kB / 1.081 GB, free: 7.949 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002463/1.102, allocations: 266.2 kB / 1.082 GB, free: 7.746 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.8e-07/1.102, allocations: 0 / 1.082 GB, free: 7.746 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006089/1.102, allocations: 132 kB / 1.082 GB, free: 7.617 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.000188/1.103, allocations: 103.2 kB / 1.082 GB, free: 7.504 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001234/1.104, allocations: 0.9619 MB / 1.083 GB, free: 6.609 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/1.104, allocations: 0 / 1.083 GB, free: 6.609 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0007413/1.105, allocations: 0.7002 MB / 1.084 GB, free: 5.898 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/1.105, allocations: 167.8 kB / 1.084 GB, free: 5.762 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001207/1.107, allocations: 0.734 MB / 1.084 GB, free: 5.059 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000592/1.107, allocations: 0.9159 MB / 1.085 GB, free: 4.129 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0003295/1.107, allocations: 112.8 kB / 1.085 GB, free: 4.02 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.225e-05/1.108, allocations: 35.44 kB / 1.085 GB, free: 3.984 MB / 0.698 GB Notification: Performance of SimCode: time 3.41e-07/1.108, allocations: 0 / 1.085 GB, free: 3.984 MB / 0.698 GB Notification: Performance of Templates: time 0.01111/1.119, allocations: 6.367 MB / 1.092 GB, free: 13.7 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