Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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) Running command: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i|meterAC.p|meterAC.v|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001455/0.001455, allocations: 181 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009282/0.0009281, allocations: 87.02 kB / 270.8 MB, free: 8.379 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1642/0.1642, allocations: 38.06 MB / 357.2 MB, free: 1.883 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002993/0.0002994, allocations: 8 kB / 424 MB, free: 37.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2633, allocations: 56.32 MB / 480.3 MB, free: 9.539 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1339/0.3972, allocations: 101.1 MB / 0.5678 GB, free: 1.309 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.3975, allocations: 95.95 kB / 0.5679 GB, free: 1.215 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04223/0.4398, allocations: 15.29 MB / 0.5828 GB, free: 1.734 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4398, allocations: 0 / 0.5828 GB, free: 1.734 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.375e-05/0.4399, allocations: 16 kB / 0.5828 GB, free: 1.719 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 123 * Number of variables: 123 Notification: Performance of Generate backend data structure: time 0.00158/0.4415, allocations: 0.8802 MB / 0.5837 GB, free: 0.7891 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.4415, allocations: 8.031 kB / 0.5837 GB, free: 0.7812 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/0.4417, allocations: 75.11 kB / 0.5838 GB, free: 0.707 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002612/0.4443, allocations: 1.082 MB / 0.5848 GB, free: 15.58 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.4443, allocations: 37 kB / 0.5849 GB, free: 15.55 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.094e-05/0.4444, allocations: 48 kB / 0.5849 GB, free: 15.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000935/0.4453, allocations: 0.6219 MB / 0.5855 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.4454, allocations: 0 / 0.5855 GB, free: 14.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.119e-05/0.4454, allocations: 23.98 kB / 0.5855 GB, free: 14.81 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.289e-05/0.4454, allocations: 12 kB / 0.5855 GB, free: 14.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007959/0.4463, allocations: 0.519 MB / 0.586 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003155/0.4494, allocations: 2.24 MB / 0.5882 GB, free: 11.95 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007764/0.4502, allocations: 489 kB / 0.5887 GB, free: 11.45 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.4503, allocations: 12 kB / 0.5887 GB, free: 11.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.4503, allocations: 34.56 kB / 0.5887 GB, free: 11.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 1.653e-06/0.4503, allocations: 0 / 0.5887 GB, free: 11.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=47): time 0.002975/0.4533, allocations: 1.699 MB / 0.5904 GB, free: 9.629 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.298e-05/0.4533, allocations: 85.11 kB / 0.5905 GB, free: 9.527 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003703/0.4537, allocations: 369 kB / 0.5908 GB, free: 9.168 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.205e-05/0.4537, allocations: 33.7 kB / 0.5909 GB, free: 9.129 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001822/0.4539, allocations: 292.5 kB / 0.5912 GB, free: 8.836 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.4541, allocations: 165.6 kB / 0.5913 GB, free: 8.672 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.33e-05/0.4541, allocations: 12 kB / 0.5913 GB, free: 8.66 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001291/0.4542, allocations: 358.8 kB / 0.5917 GB, free: 8.301 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002627/0.4545, allocations: 181 kB / 0.5918 GB, free: 8.125 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003317/0.4548, allocations: 307.6 kB / 0.5921 GB, free: 7.773 MB / 426.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: ind.i[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.0018/0.4566, allocations: 0.7451 MB / 0.5929 GB, free: 7.008 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.4567, allocations: 0 / 0.5929 GB, free: 7.008 MB / 426.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001053/0.4577, allocations: 0.6833 MB / 0.5935 GB, free: 6.316 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.4577, allocations: 4 kB / 0.5935 GB, free: 6.312 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.4578, allocations: 4.469 kB / 0.5935 GB, free: 6.309 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003594/0.4581, allocations: 136.7 kB / 0.5937 GB, free: 6.172 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004374/0.4586, allocations: 119.8 kB / 0.5938 GB, free: 6.055 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00251/0.4611, allocations: 2.299 MB / 0.596 GB, free: 3.621 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002612/0.4614, allocations: 28.02 kB / 0.596 GB, free: 3.594 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.375e-05/0.4614, allocations: 23.98 kB / 0.5961 GB, free: 3.57 MB / 426.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (55): * Single equations (assignments): 54 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,88.9%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002734/0.4617, allocations: 225.6 kB / 0.5963 GB, free: 3.34 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.992e-05/0.4618, allocations: 55.3 kB / 0.5963 GB, free: 3.285 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001026/0.4628, allocations: 0.6348 MB / 0.597 GB, free: 2.637 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.08e-06/0.4628, allocations: 4 kB / 0.597 GB, free: 2.633 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.4628, allocations: 4 kB / 0.597 GB, free: 2.629 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.4629, allocations: 3.984 kB / 0.597 GB, free: 2.625 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00199/0.4648, allocations: 1.336 MB / 0.5983 GB, free: 1.207 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.4649, allocations: 4 kB / 0.5983 GB, free: 1.203 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003597/0.4652, allocations: 79.94 kB / 0.5984 GB, free: 1.125 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003391/0.4656, allocations: 141 kB / 0.5985 GB, free: 0.9844 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.211e-05/0.4656, allocations: 12 kB / 0.5985 GB, free: 0.9727 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002353/0.468, allocations: 2.327 MB / 0.6008 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.468, allocations: 0 / 0.6008 GB, free: 14.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00134/0.4693, allocations: 1.029 MB / 0.6018 GB, free: 13.42 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000124/0.4695, allocations: 132.4 kB / 0.6019 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.655e-05/0.4695, allocations: 8 kB / 0.6019 GB, free: 13.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002321/0.4698, allocations: 19.98 kB / 0.6019 GB, free: 13.25 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.93e-05/0.4699, allocations: 36.39 kB / 0.602 GB, free: 13.21 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.85e-05/0.4699, allocations: 16 kB / 0.602 GB, free: 13.19 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002938/0.4702, allocations: 287.1 kB / 0.6023 GB, free: 12.91 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4702, allocations: 0 / 0.6023 GB, free: 12.91 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005622/0.4708, allocations: 148 kB / 0.6024 GB, free: 12.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (meterDC.pav,meterAC.pav,ind.i[2]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001789/0.471, allocations: 127.1 kB / 0.6025 GB, free: 12.63 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009986/0.472, allocations: 0.6534 MB / 0.6032 GB, free: 11.97 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.472, allocations: 4.188 kB / 0.6032 GB, free: 11.96 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005874/0.4726, allocations: 425.1 kB / 0.6036 GB, free: 11.54 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005412/0.4731, allocations: 122.1 kB / 0.6037 GB, free: 11.42 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.4751, allocations: 1.587 MB / 0.6052 GB, free: 9.785 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004771/0.4756, allocations: 0.9411 MB / 0.6062 GB, free: 8.816 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003279/0.4759, allocations: 104.7 kB / 0.6063 GB, free: 8.711 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.661e-05/0.476, allocations: 39.44 kB / 0.6063 GB, free: 8.672 MB / 442.7 MB Notification: Performance of SimCode: time 3.9e-07/0.476, allocations: 0 / 0.6063 GB, free: 8.672 MB / 442.7 MB Notification: Performance of Templates: time 0.01066/0.4867, allocations: 6.179 MB / 0.6123 GB, free: 2.508 MB / 442.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches