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.VariableImpedance.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.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") translateModel(Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Z_L.i.1.|Z_L.i.2.|Z_C.i.1.|Z_C.i.2.|Z_R.i.1.|Z_R.i.2.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.38/1.38, allocations: 251.9 MB / 266.9 MB, free: 11.01 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.001097/0.001097, allocations: 184 kB / 326.5 MB, free: 2.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.823/1.823, allocations: 205.4 MB / 0.5775 GB, free: 20.21 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.0008899/0.0008896, allocations: 97.86 kB / 0.6821 GB, free: 12.86 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003797/0.0003798, allocations: 9.406 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2488, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2047/0.4536, allocations: 148 MB / 1.045 GB, free: 11.74 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003086/0.454, allocations: 91.94 kB / 1.045 GB, free: 11.65 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.6244/1.078, allocations: 20.49 MB / 1.065 GB, free: 148.8 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.803e-06/1.078, allocations: 0 / 1.065 GB, free: 148.8 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.199e-05/1.079, allocations: 15.5 kB / 1.065 GB, free: 148.8 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: 85 * Number of variables: 85 Notification: Performance of Generate backend data structure: time 0.00171/1.08, allocations: 0.6938 MB / 1.065 GB, free: 148.2 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.705e-05/1.08, allocations: 9.516 kB / 1.065 GB, free: 148.2 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/1.081, allocations: 135.5 kB / 1.066 GB, free: 148.2 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008782/1.082, allocations: 383 kB / 1.066 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.598e-05/1.082, allocations: 28.09 kB / 1.066 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.699e-05/1.082, allocations: 31.58 kB / 1.066 GB, free: 148 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001137/1.084, allocations: 0.5983 MB / 1.067 GB, free: 147.7 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/1.084, allocations: 7.141 kB / 1.067 GB, free: 147.7 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.761e-05/1.084, allocations: 14.45 kB / 1.067 GB, free: 147.7 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.795e-05/1.084, allocations: 37.92 kB / 1.067 GB, free: 147.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009488/1.085, allocations: 411.7 kB / 1.067 GB, free: 147.6 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003073/1.088, allocations: 3.365 MB / 1.07 GB, free: 144.9 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007703/1.089, allocations: 333 kB / 1.071 GB, free: 144.9 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.637e-05/1.089, allocations: 10.23 kB / 1.071 GB, free: 144.9 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.501e-05/1.089, allocations: 36.5 kB / 1.071 GB, free: 144.9 MB / 0.698 GB Notification: Performance of pre-optimization done (n=26): time 2.254e-06/1.089, allocations: 0 / 1.071 GB, free: 144.9 MB / 0.698 GB Notification: Performance of matching and sorting (n=27): time 0.002349/1.091, allocations: 1.073 MB / 1.072 GB, free: 144.4 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/1.091, allocations: 54.39 kB / 1.072 GB, free: 144.4 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003647/1.092, allocations: 302.6 kB / 1.072 GB, free: 144.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.508e-05/1.092, allocations: 30.89 kB / 1.072 GB, free: 144.2 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001491/1.092, allocations: 236.6 kB / 1.072 GB, free: 144.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.146e-05/1.092, allocations: 91.53 kB / 1.072 GB, free: 144 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.859e-05/1.092, allocations: 8.688 kB / 1.072 GB, free: 144 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001131/1.092, allocations: 356 kB / 1.073 GB, free: 143.7 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003232/1.092, allocations: 147.8 kB / 1.073 GB, free: 143.7 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003568/1.093, allocations: 272.1 kB / 1.073 GB, free: 143.6 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003539/1.093, allocations: 195.3 kB / 1.073 GB, free: 143.5 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.547e-06/1.093, allocations: 1.094 kB / 1.073 GB, free: 143.5 MB / 0.698 GB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001086/1.094, allocations: 0.5544 MB / 1.074 GB, free: 143.4 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 3.286e-05/1.094, allocations: 6.531 kB / 1.074 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.671e-05/1.094, allocations: 3.844 kB / 1.074 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003468/1.095, allocations: 86.81 kB / 1.074 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004138/1.095, allocations: 85.27 kB / 1.074 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.415e-05/1.095, allocations: 10.11 kB / 1.074 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000333/1.095, allocations: 29.84 kB / 1.074 GB, free: 143.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.243e-05/1.095, allocations: 12.75 kB / 1.074 GB, free: 143.4 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (42): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002781/1.096, allocations: 181.7 kB / 1.074 GB, free: 143.3 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.796e-05/1.096, allocations: 43.95 kB / 1.074 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001154/1.097, allocations: 474.3 kB / 1.075 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.18e-05/1.097, allocations: 2.688 kB / 1.075 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.126e-05/1.097, allocations: 4.812 kB / 1.075 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.085e-06/1.097, allocations: 4.312 kB / 1.075 GB, free: 143.2 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001878/1.099, allocations: 0.9794 MB / 1.076 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.921e-06/1.099, allocations: 4.781 kB / 1.076 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002535/1.099, allocations: 51.81 kB / 1.076 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002586/1.099, allocations: 86.25 kB / 1.076 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.496e-05/1.099, allocations: 8.969 kB / 1.076 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/1.099, allocations: 1.5 kB / 1.076 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/1.099, allocations: 1.625 kB / 1.076 GB, free: 142.8 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009664/1.1, allocations: 0.5928 MB / 1.076 GB, free: 142.5 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001763/1.101, allocations: 145.2 kB / 1.077 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.83e-05/1.101, allocations: 2.875 kB / 1.077 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000222/1.101, allocations: 25.23 kB / 1.077 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.043e-05/1.101, allocations: 21.62 kB / 1.077 GB, free: 142.4 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.972e-05/1.101, allocations: 5.469 kB / 1.077 GB, free: 142.4 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0002793/1.101, allocations: 236.5 kB / 1.077 GB, free: 142.3 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.1e-07/1.101, allocations: 1.125 kB / 1.077 GB, free: 142.3 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0005516/1.102, allocations: 97.11 kB / 1.077 GB, free: 142.3 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (25): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002318/1.102, allocations: 111.8 kB / 1.077 GB, free: 142.2 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.0009599/1.103, allocations: 0.6342 MB / 1.078 GB, free: 141.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/1.103, allocations: 1.188 kB / 1.078 GB, free: 141.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0004119/1.104, allocations: 441.8 kB / 1.078 GB, free: 141.5 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/1.104, allocations: 115.3 kB / 1.078 GB, free: 141.5 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00121/1.105, allocations: 0.8611 MB / 1.079 GB, free: 141.1 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000329/1.106, allocations: 0.8339 MB / 1.08 GB, free: 140.3 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002591/1.106, allocations: 83.97 kB / 1.08 GB, free: 140.3 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.988e-05/1.106, allocations: 27.69 kB / 1.08 GB, free: 140.3 MB / 0.698 GB Notification: Performance of SimCode: time 4.31e-07/1.106, allocations: 1.344 kB / 1.08 GB, free: 140.3 MB / 0.698 GB Notification: Performance of Templates: time 0.009258/1.115, allocations: 4.31 MB / 1.084 GB, free: 139.9 MB / 0.698 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.makefile (rm -f Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.sim & ./Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Electrical_AC_OnePhase_Loads_Examples_VariableImpedance.csv","../files/Buildings_maint.7.0.x_Buildings.Electrical.AC.OnePhase.Loads.Examples.VariableImpedance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches