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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007021/0.0007021, allocations: 94.38 kB / 16.65 MB, free: 6.586 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008602/0.0008602, allocations: 183.8 kB / 17.57 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.208/1.208, allocations: 223.3 MB / 241.6 MB, free: 120 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1611/0.1611, allocations: 38.08 MB / 330.8 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002574/0.0002575, allocations: 8 kB / 400.7 MB, free: 34.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08786/0.08813, allocations: 59.16 MB / 459.9 MB, free: 7.074 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.006616/0.09478, allocations: 6.909 MB / 466.8 MB, free: 132 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002841/0.09765, allocations: 1.776 MB / 468.6 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005464/0.09821, allocations: 47.69 kB / 468.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004086/0.09864, allocations: 107.2 kB / 468.7 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000783/0.09943, allocations: 358.5 kB / 469.1 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000436/0.09988, allocations: 171.7 kB / 469.2 MB, free: 13.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001297/0.1012, allocations: 1.383 MB / 470.6 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.1015, allocations: 233.5 kB / 470.8 MB, free: 12.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005406/0.1021, allocations: 334.3 kB / 471.2 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006766/0.1028, allocations: 466.3 kB / 471.6 MB, free: 11.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.078e-05/0.1028, allocations: 24 kB / 471.7 MB, free: 11.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001116/0.103, allocations: 28 kB / 471.7 MB, free: 11.22 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.1032, allocations: 239.3 kB / 471.9 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002969/0.1035, allocations: 320 kB / 472.2 MB, free: 10.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000495/0.104, allocations: 0.6304 MB / 472.9 MB, free: 10.04 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.104, allocations: 4 kB / 472.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.104, allocations: 0 / 472.9 MB, free: 10.03 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.316e-05/0.104, allocations: 0 / 472.9 MB, free: 10.03 MB / 350.1 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.001369/0.1054, allocations: 0.8512 MB / 473.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.046e-05/0.1055, allocations: 8.031 kB / 473.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001052/0.1056, allocations: 64.19 kB / 473.8 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007382/0.1063, allocations: 0.5258 MB / 474.3 MB, free: 8.492 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.1064, allocations: 41.12 kB / 474.4 MB, free: 8.453 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.152e-05/0.1064, allocations: 51.91 kB / 474.4 MB, free: 8.402 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008723/0.1073, allocations: 0.6288 MB / 475 MB, free: 7.734 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.1073, allocations: 3.938 kB / 475 MB, free: 7.73 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.458e-05/0.1074, allocations: 20 kB / 475.1 MB, free: 7.711 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.812e-05/0.1075, allocations: 32.97 kB / 475.1 MB, free: 7.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007354/0.1082, allocations: 0.5035 MB / 475.6 MB, free: 7.176 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002772/0.111, allocations: 2.245 MB / 477.8 MB, free: 4.832 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007638/0.1118, allocations: 0.4892 MB / 478.3 MB, free: 4.324 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005608/0.1124, allocations: 333.6 kB / 478.6 MB, free: 3.992 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.925e-05/0.1124, allocations: 8 kB / 478.7 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.625e-05/0.1124, allocations: 46.48 kB / 478.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.493e-06/0.1125, allocations: 0 / 478.7 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.00305/0.1155, allocations: 1.753 MB / 480.5 MB, free: 2.102 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.787e-05/0.1156, allocations: 85.05 kB / 480.5 MB, free: 2 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003968/0.116, allocations: 413.9 kB / 480.9 MB, free: 1.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.116, allocations: 37.7 kB / 481 MB, free: 1.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001881/0.1162, allocations: 300.3 kB / 481.3 MB, free: 1.25 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.1163, allocations: 161.6 kB / 481.4 MB, free: 1.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.281e-05/0.1164, allocations: 49.7 kB / 481.5 MB, free: 1.035 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1165, allocations: 366.8 kB / 481.8 MB, free: 0.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002756/0.1168, allocations: 189 kB / 482 MB, free: 496 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003279/0.1172, allocations: 311.6 kB / 482.3 MB, free: 136 kB / 350.1 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.002469/0.1196, allocations: 1.238 MB / 483.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1196, allocations: 4 kB / 483.6 MB, free: 14.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001112/0.1208, allocations: 0.707 MB / 484.3 MB, free: 14.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.1208, allocations: 8 kB / 484.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.127e-06/0.1208, allocations: 4 kB / 484.3 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003579/0.1212, allocations: 140.7 kB / 484.4 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004185/0.1216, allocations: 111.8 kB / 484.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002634/0.1242, allocations: 2.385 MB / 486.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002778/0.1245, allocations: 28.02 kB / 486.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.566e-05/0.1246, allocations: 20.11 kB / 487 MB, free: 11.27 MB / 366.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000268/0.1249, allocations: 233.6 kB / 487.2 MB, free: 11.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.841e-05/0.1249, allocations: 47.44 kB / 487.2 MB, free: 10.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.126, allocations: 0.6581 MB / 487.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.316e-06/0.126, allocations: 11.98 kB / 487.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.126, allocations: 0 / 487.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.45e-06/0.126, allocations: 0 / 487.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00198/0.128, allocations: 1.381 MB / 489.3 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.128, allocations: 0 / 489.3 MB, free: 8.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/0.1284, allocations: 75.89 kB / 489.4 MB, free: 8.766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003627/0.1287, allocations: 144.7 kB / 489.5 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.637e-05/0.1288, allocations: 16 kB / 489.5 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002334/0.1311, allocations: 2.373 MB / 491.9 MB, free: 6.098 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.306e-06/0.1312, allocations: 3.938 kB / 491.9 MB, free: 6.094 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.1325, allocations: 0.9886 MB / 492.9 MB, free: 5.066 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001142/0.1326, allocations: 124.4 kB / 493 MB, free: 4.926 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.037e-05/0.1327, allocations: 16 kB / 493 MB, free: 4.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002405/0.1329, allocations: 23.98 kB / 493 MB, free: 4.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.258e-05/0.133, allocations: 35.94 kB / 493.1 MB, free: 4.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.001e-05/0.1331, allocations: 19.94 kB / 493.1 MB, free: 4.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002903/0.1334, allocations: 287.1 kB / 493.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.1334, allocations: 0 / 493.4 MB, free: 4.551 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005799/0.134, allocations: 148 kB / 493.5 MB, free: 4.406 MB / 366.1 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,9,88.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001531/0.1341, allocations: 115.1 kB / 493.6 MB, free: 4.285 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.1352, allocations: 0.649 MB / 494.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1352, allocations: 192 / 494.3 MB, free: 3.621 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000613/0.1358, allocations: 438.4 kB / 494.7 MB, free: 3.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007727/0.1366, allocations: 130.7 kB / 494.8 MB, free: 3.055 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00217/0.1388, allocations: 1.637 MB / 496.5 MB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005054/0.1393, allocations: 0.9295 MB / 497.4 MB, free: 420 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000323/0.1396, allocations: 108.7 kB / 497.5 MB, free: 312 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.1397, allocations: 35.44 kB / 497.6 MB, free: 276 kB / 366.1 MB Notification: Performance of SimCode: time 4.31e-07/0.1397, allocations: 0 / 497.6 MB, free: 276 kB / 366.1 MB Notification: Performance of Templates: time 0.01081/0.1506, allocations: 6.398 MB / 0.4921 GB, free: 9.93 MB / 382.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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