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.001634/0.001634, allocations: 176.8 kB / 17.4 MB, free: 4.305 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.496/1.496, allocations: 205.4 MB / 223.5 MB, free: 9.035 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.00077/0.00077, allocations: 93.41 kB / 271.9 MB, free: 8.27 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2201/0.2201, allocations: 38.08 MB / 358.2 MB, free: 1.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003421/0.0003423, allocations: 15.98 kB / 425.2 MB, free: 37.38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3337, allocations: 56.32 MB / 481.6 MB, free: 9.602 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1466/0.4804, allocations: 101.1 MB / 0.569 GB, free: 1.129 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000283/0.4807, allocations: 99.81 kB / 0.5691 GB, free: 1.035 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04401/0.5247, allocations: 15.29 MB / 0.5841 GB, free: 1.562 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.5248, allocations: 3.938 kB / 0.5841 GB, free: 1.559 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.046e-05/0.5248, allocations: 16 kB / 0.5841 GB, free: 1.543 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.001952/0.5268, allocations: 0.872 MB / 0.5849 GB, free: 0.6211 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.5268, allocations: 12.03 kB / 0.5849 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001977/0.527, allocations: 68.09 kB / 0.585 GB, free: 0.543 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001667/0.5287, allocations: 0.7597 MB / 0.5857 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.621e-05/0.5288, allocations: 37.38 kB / 0.5858 GB, free: 15.71 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001084/0.5289, allocations: 48.38 kB / 0.5858 GB, free: 15.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001052/0.5299, allocations: 0.6263 MB / 0.5864 GB, free: 14.99 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.038e-05/0.53, allocations: 7.875 kB / 0.5864 GB, free: 14.98 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.386e-05/0.53, allocations: 24 kB / 0.5865 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.332e-05/0.5301, allocations: 15.94 kB / 0.5865 GB, free: 14.95 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008791/0.5309, allocations: 0.5035 MB / 0.587 GB, free: 14.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003286/0.5342, allocations: 2.253 MB / 0.5892 GB, free: 12.09 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007925/0.535, allocations: 481 kB / 0.5896 GB, free: 11.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006149/0.5357, allocations: 337.6 kB / 0.59 GB, free: 11.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.023e-05/0.5357, allocations: 7.984 kB / 0.59 GB, free: 11.26 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.647e-05/0.5358, allocations: 38.56 kB / 0.59 GB, free: 11.21 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 2.896e-06/0.5358, allocations: 0 / 0.59 GB, free: 11.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=47): time 0.003331/0.5391, allocations: 1.722 MB / 0.5917 GB, free: 9.422 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.5392, allocations: 81.11 kB / 0.5918 GB, free: 9.324 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000443/0.5396, allocations: 417.7 kB / 0.5922 GB, free: 8.91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.438e-05/0.5397, allocations: 37.7 kB / 0.5922 GB, free: 8.867 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001937/0.5399, allocations: 296.5 kB / 0.5925 GB, free: 8.574 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.54, allocations: 161.6 kB / 0.5926 GB, free: 8.414 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.265e-05/0.54, allocations: 12.03 kB / 0.5926 GB, free: 8.402 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.5402, allocations: 370.7 kB / 0.593 GB, free: 8.031 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002682/0.5405, allocations: 181 kB / 0.5932 GB, free: 7.855 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003436/0.5408, allocations: 310.5 kB / 0.5935 GB, free: 7.504 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.002378/0.5432, allocations: 1.218 MB / 0.5947 GB, free: 6.215 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.5432, allocations: 8 kB / 0.5947 GB, free: 6.207 MB / 426.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001167/0.5444, allocations: 0.6913 MB / 0.5953 GB, free: 5.508 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.5444, allocations: 11.94 kB / 0.5954 GB, free: 5.496 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.5444, allocations: 4 kB / 0.5954 GB, free: 5.492 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00042/0.5449, allocations: 132.8 kB / 0.5955 GB, free: 5.359 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004585/0.5453, allocations: 115.8 kB / 0.5956 GB, free: 5.246 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002852/0.5482, allocations: 2.342 MB / 0.5979 GB, free: 2.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000315/0.5485, allocations: 23.97 kB / 0.5979 GB, free: 2.746 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.788e-05/0.5486, allocations: 20 kB / 0.5979 GB, free: 2.727 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 (54): * Single equations (assignments): 53 * 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,77.8%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003915/0.549, allocations: 233.6 kB / 0.5981 GB, free: 2.488 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.592e-05/0.5491, allocations: 51.34 kB / 0.5982 GB, free: 2.438 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001128/0.5502, allocations: 0.6425 MB / 0.5988 GB, free: 1.781 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.5502, allocations: 4 kB / 0.5988 GB, free: 1.777 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.5503, allocations: 4 kB / 0.5988 GB, free: 1.773 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.337e-06/0.5503, allocations: 3.984 kB / 0.5988 GB, free: 1.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002251/0.5525, allocations: 1.353 MB / 0.6002 GB, free: 336 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/0.5526, allocations: 4 kB / 0.6002 GB, free: 332 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003611/0.5529, allocations: 75.89 kB / 0.6002 GB, free: 256 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004415/0.5534, allocations: 140.8 kB / 0.6004 GB, free: 112 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.5534, allocations: 16.11 kB / 0.6004 GB, free: 96 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003307/0.5568, allocations: 2.33 MB / 0.6027 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5568, allocations: 3.938 kB / 0.6027 GB, free: 13.63 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001539/0.5583, allocations: 0.9701 MB / 0.6036 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001877/0.5585, allocations: 132.5 kB / 0.6037 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.513e-05/0.5586, allocations: 11.98 kB / 0.6037 GB, free: 12.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002668/0.5589, allocations: 23.98 kB / 0.6038 GB, free: 12.44 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.502e-05/0.559, allocations: 31.95 kB / 0.6038 GB, free: 12.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.334e-05/0.559, allocations: 20.08 kB / 0.6038 GB, free: 12.39 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.000455/0.5595, allocations: 291.1 kB / 0.6041 GB, free: 12.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 2e-07/0.5595, allocations: 0 / 0.6041 GB, free: 12.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009851/0.5605, allocations: 148 kB / 0.6042 GB, free: 11.96 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (41): * Single equations (assignments): 39 * 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,88.9%) 9} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002901/0.5608, allocations: 131.1 kB / 0.6044 GB, free: 11.82 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00129/0.5621, allocations: 0.6572 MB / 0.605 GB, free: 11.15 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.5621, allocations: 0 / 0.605 GB, free: 11.15 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007143/0.5628, allocations: 426.2 kB / 0.6054 GB, free: 10.72 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008575/0.5637, allocations: 126.9 kB / 0.6055 GB, free: 10.6 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.5663, allocations: 1.589 MB / 0.6071 GB, free: 8.957 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000643/0.567, allocations: 0.9294 MB / 0.608 GB, free: 8 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000379/0.5674, allocations: 104.7 kB / 0.6081 GB, free: 7.898 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.5675, allocations: 39.44 kB / 0.6081 GB, free: 7.859 MB / 442.7 MB Notification: Performance of SimCode: time 4.2e-07/0.5675, allocations: 0 / 0.6081 GB, free: 7.859 MB / 442.7 MB Notification: Performance of Templates: time 0.01284/0.5803, allocations: 6.385 MB / 0.6144 GB, free: 1.488 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/jenkins1/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