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.368/1.368, allocations: 251.9 MB / 266.9 MB, free: 11.03 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.001102/0.001102, allocations: 183.2 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.934/1.934, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0008381/0.000838, allocations: 90.36 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000366/0.0003661, allocations: 11.09 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2093, allocations: 106.3 MB / 0.9001 GB, free: 63.91 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1912/0.4006, allocations: 147.5 MB / 1.044 GB, free: 12.19 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003267/0.401, allocations: 103.9 kB / 1.044 GB, free: 12.09 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.594/0.995, allocations: 29.64 MB / 1.073 GB, free: 148 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.825e-06/0.995, allocations: 4 kB / 1.073 GB, free: 148 MB / 0.698 GB Notification: Performance of Transformations before backend: time 4.816e-05/0.9951, allocations: 21.44 kB / 1.073 GB, free: 148 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001508/0.9966, allocations: 0.8529 MB / 1.074 GB, free: 147.4 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.352e-05/0.9967, allocations: 8.188 kB / 1.074 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00129/0.998, allocations: 206.2 kB / 1.074 GB, free: 147.4 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008183/0.9988, allocations: 487.3 kB / 1.075 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.262e-05/0.9989, allocations: 36.33 kB / 1.075 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.779e-05/0.999, allocations: 43.41 kB / 1.075 GB, free: 147.1 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001162/1, allocations: 0.9297 MB / 1.076 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.912e-05/1, allocations: 6.75 kB / 1.076 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.573e-05/1, allocations: 22.06 kB / 1.076 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001004/1, allocations: 50.72 kB / 1.076 GB, free: 146.6 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008792/1.001, allocations: 0.5646 MB / 1.076 GB, free: 146.5 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004072/1.005, allocations: 5.662 MB / 1.082 GB, free: 141.6 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007537/1.006, allocations: 461.1 kB / 1.082 GB, free: 141.5 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 2.949e-05/1.006, allocations: 4.047 kB / 1.082 GB, free: 141.5 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.86e-05/1.006, allocations: 35.22 kB / 1.082 GB, free: 141.4 MB / 0.698 GB Notification: Performance of pre-optimization done (n=32): time 2.635e-06/1.006, allocations: 7.922 kB / 1.082 GB, free: 141.4 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.002518/1.009, allocations: 1.495 MB / 1.084 GB, free: 140.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/1.009, allocations: 55.84 kB / 1.084 GB, free: 140.5 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005322/1.009, allocations: 436.1 kB / 1.084 GB, free: 140.3 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.797e-05/1.009, allocations: 34.92 kB / 1.084 GB, free: 140.3 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/1.01, allocations: 335 kB / 1.085 GB, free: 140.1 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.829e-05/1.01, allocations: 127.7 kB / 1.085 GB, free: 140 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.005e-05/1.01, allocations: 9.125 kB / 1.085 GB, free: 140 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 9.013e-05/1.01, allocations: 362.7 kB / 1.085 GB, free: 139.7 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002983/1.01, allocations: 189.3 kB / 1.085 GB, free: 139.6 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000389/1.01, allocations: 413.9 kB / 1.086 GB, free: 139.3 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003729/1.011, allocations: 247.8 kB / 1.086 GB, free: 139.3 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.566e-06/1.011, allocations: 2.062 kB / 1.086 GB, free: 139.3 MB / 0.698 GB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001351/1.012, allocations: 0.7709 MB / 1.087 GB, free: 139 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.501e-05/1.012, allocations: 7.938 kB / 1.087 GB, free: 139 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.306e-05/1.012, allocations: 8.125 kB / 1.087 GB, free: 139 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004807/1.013, allocations: 157.7 kB / 1.087 GB, free: 138.9 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004966/1.013, allocations: 114.4 kB / 1.087 GB, free: 138.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002879/1.016, allocations: 4.055 MB / 1.091 GB, free: 135 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005629/1.017, allocations: 34.53 kB / 1.091 GB, free: 135 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/1.017, allocations: 24.94 kB / 1.091 GB, free: 135 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 () * Number of clocked 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.0003599/1.017, allocations: 212.3 kB / 1.091 GB, free: 134.8 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/1.017, allocations: 61.28 kB / 1.091 GB, free: 134.8 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001126/1.018, allocations: 0.5949 MB / 1.092 GB, free: 134.6 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/1.018, allocations: 3.312 kB / 1.092 GB, free: 134.6 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/1.018, allocations: 2.344 kB / 1.092 GB, free: 134.6 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/1.018, allocations: 3.953 kB / 1.092 GB, free: 134.6 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001754/1.02, allocations: 1.262 MB / 1.093 GB, free: 134 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/1.02, allocations: 3.781 kB / 1.093 GB, free: 134 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002303/1.02, allocations: 57.89 kB / 1.093 GB, free: 133.9 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003608/1.021, allocations: 144.6 kB / 1.093 GB, free: 133.9 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.665e-05/1.021, allocations: 11.36 kB / 1.093 GB, free: 133.9 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002017/1.023, allocations: 4.042 MB / 1.097 GB, free: 129.9 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/1.023, allocations: 6.188 kB / 1.097 GB, free: 129.9 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008331/1.024, allocations: 0.8038 MB / 1.098 GB, free: 129.4 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000214/1.024, allocations: 165.5 kB / 1.098 GB, free: 129.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.854e-05/1.024, allocations: 15.81 kB / 1.098 GB, free: 129.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002607/1.024, allocations: 23.28 kB / 1.098 GB, free: 129.2 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.87e-05/1.024, allocations: 30.98 kB / 1.098 GB, free: 129.2 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/1.024, allocations: 10.94 kB / 1.098 GB, free: 129.2 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.000287/1.025, allocations: 328 kB / 1.099 GB, free: 129 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/1.025, allocations: 0 / 1.099 GB, free: 129 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0006644/1.025, allocations: 150.7 kB / 1.099 GB, free: 129 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 () * Number of clocked 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.0001547/1.026, allocations: 122.7 kB / 1.099 GB, free: 128.9 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001099/1.027, allocations: 1.007 MB / 1.1 GB, free: 128.1 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/1.027, allocations: 0 / 1.1 GB, free: 128.1 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0006046/1.027, allocations: 0.7458 MB / 1.101 GB, free: 127.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007465/1.028, allocations: 184.4 kB / 1.101 GB, free: 127.3 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/1.029, allocations: 1.201 MB / 1.102 GB, free: 126.4 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003362/1.03, allocations: 0.9144 MB / 1.103 GB, free: 125.6 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0002974/1.03, allocations: 121.2 kB / 1.103 GB, free: 125.6 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.37e-05/1.03, allocations: 37.75 kB / 1.103 GB, free: 125.6 MB / 0.698 GB Notification: Performance of SimCode: time 5.01e-07/1.03, allocations: 0 / 1.103 GB, free: 125.6 MB / 0.698 GB Notification: Performance of Templates: time 0.01069/1.041, allocations: 7.045 MB / 1.11 GB, free: 120.1 MB / 0.698 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