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.00106/0.001065, allocations: 104.2 kB / 17.59 MB, free: 5.559 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.001039/0.001039, allocations: 191.4 kB / 18.51 MB, free: 4.641 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.314/1.314, allocations: 222.9 MB / 242.2 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1759/0.1759, allocations: 38.04 MB / 330.4 MB, free: 8.84 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 65.36 kB / 399.5 MB, free: 34.06 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09675/0.09806, allocations: 58.06 MB / 457.5 MB, free: 8.051 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007204/0.1053, allocations: 6.076 MB / 463.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002348/0.1077, allocations: 1.414 MB / 465 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002507/0.108, allocations: 27.81 kB / 465.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000443/0.1084, allocations: 146.9 kB / 465.2 MB, free: 360 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007354/0.1092, allocations: 390 kB / 465.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004522/0.1097, allocations: 187.7 kB / 465.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007966/0.1105, allocations: 0.9188 MB / 466.7 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000397/0.1109, allocations: 274.7 kB / 467 MB, free: 14.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005326/0.1114, allocations: 402.3 kB / 467.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006373/0.1121, allocations: 470.4 kB / 467.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.086e-05/0.1122, allocations: 51.94 kB / 467.9 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001112/0.1123, allocations: 48 kB / 467.9 MB, free: 13.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002579/0.1126, allocations: 263.3 kB / 468.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003055/0.1129, allocations: 314.4 kB / 468.5 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006178/0.1135, allocations: 0.6656 MB / 469.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.74e-06/0.1135, allocations: 4 kB / 469.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1135, allocations: 7.938 kB / 469.1 MB, free: 12.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.1135, allocations: 0 / 469.1 MB, free: 12.4 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.00168/0.1152, allocations: 0.9408 MB / 470.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.751e-05/0.1153, allocations: 11.89 kB / 470.1 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001241/0.1154, allocations: 68.09 kB / 470.2 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009165/0.1163, allocations: 0.5257 MB / 470.7 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.293e-05/0.1164, allocations: 37.12 kB / 470.7 MB, free: 10.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.201e-05/0.1165, allocations: 48 kB / 470.8 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000925/0.1174, allocations: 0.6327 MB / 471.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.55e-05/0.1174, allocations: 3.938 kB / 471.4 MB, free: 10.01 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.885e-05/0.1175, allocations: 20 kB / 471.4 MB, free: 9.988 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001053/0.1176, allocations: 32.97 kB / 471.5 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007815/0.1184, allocations: 0.5074 MB / 472 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002934/0.1213, allocations: 2.234 MB / 474.2 MB, free: 7.113 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008238/0.1222, allocations: 496.2 kB / 474.7 MB, free: 6.613 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006388/0.1228, allocations: 346.1 kB / 475 MB, free: 6.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.799e-05/0.1229, allocations: 7.984 kB / 475 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.559e-05/0.1229, allocations: 38.56 kB / 475.1 MB, free: 6.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.395e-06/0.1229, allocations: 3.938 kB / 475.1 MB, free: 6.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003404/0.1263, allocations: 1.749 MB / 476.8 MB, free: 4.387 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.075e-05/0.1264, allocations: 85.05 kB / 476.9 MB, free: 4.285 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004713/0.1269, allocations: 422 kB / 477.3 MB, free: 3.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.355e-05/0.127, allocations: 37.7 kB / 477.4 MB, free: 3.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002003/0.1272, allocations: 296.5 kB / 477.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.1273, allocations: 157.7 kB / 477.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001404/0.1274, allocations: 102.1 kB / 477.9 MB, free: 3.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001661/0.1276, allocations: 362.8 kB / 478.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000278/0.1279, allocations: 181 kB / 478.4 MB, free: 2.727 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003621/0.1283, allocations: 315.6 kB / 478.7 MB, free: 2.367 MB / 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.002563/0.1308, allocations: 1.234 MB / 480 MB, free: 1.062 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.624e-06/0.1308, allocations: 0 / 480 MB, free: 1.062 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001133/0.132, allocations: 0.7108 MB / 480.7 MB, free: 348 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/0.132, allocations: 8 kB / 480.7 MB, free: 340 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.033e-05/0.132, allocations: 4 kB / 480.7 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003693/0.1324, allocations: 140.9 kB / 480.8 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004385/0.1329, allocations: 111.8 kB / 480.9 MB, free: 80 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002862/0.1357, allocations: 2.622 MB / 483.6 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003113/0.1361, allocations: 28.02 kB / 483.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.72e-05/0.1361, allocations: 20 kB / 483.6 MB, free: 13.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 system: 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.000299/0.1364, allocations: 221.6 kB / 483.8 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.048e-05/0.1365, allocations: 59.28 kB / 483.9 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.1376, allocations: 0.6542 MB / 484.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.552e-06/0.1377, allocations: 4 kB / 484.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.1377, allocations: 8 kB / 484.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.708e-06/0.1377, allocations: 7.922 kB / 484.6 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.1398, allocations: 1.377 MB / 485.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.1398, allocations: 0 / 485.9 MB, free: 10.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003595/0.1402, allocations: 71.89 kB / 486 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004047/0.1406, allocations: 148.9 kB / 486.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.097e-05/0.1407, allocations: 15.98 kB / 486.2 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002713/0.1434, allocations: 2.627 MB / 488.8 MB, free: 7.832 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.107e-06/0.1434, allocations: 7.938 kB / 488.8 MB, free: 7.824 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001377/0.1448, allocations: 0.9846 MB / 489.8 MB, free: 6.805 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001188/0.1449, allocations: 120.5 kB / 489.9 MB, free: 6.668 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.759e-05/0.145, allocations: 16.03 kB / 489.9 MB, free: 6.652 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000269/0.1453, allocations: 23.92 kB / 489.9 MB, free: 6.629 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.57e-05/0.1454, allocations: 36.23 kB / 490 MB, free: 6.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.944e-05/0.1454, allocations: 16 kB / 490 MB, free: 6.578 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003163/0.1457, allocations: 287.1 kB / 490.3 MB, free: 6.301 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1457, allocations: 0 / 490.3 MB, free: 6.301 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006433/0.1464, allocations: 148 kB / 490.4 MB, free: 6.156 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.0001449/0.1465, allocations: 127 kB / 490.5 MB, free: 6.023 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001277/0.1478, allocations: 0.7107 MB / 491.3 MB, free: 5.297 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.1478, allocations: 4.875 kB / 491.3 MB, free: 5.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006722/0.1485, allocations: 442.5 kB / 491.7 MB, free: 4.848 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007648/0.1493, allocations: 137.3 kB / 491.8 MB, free: 4.715 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002166/0.1515, allocations: 1.375 MB / 493.2 MB, free: 3.289 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.152, allocations: 0.9331 MB / 494.1 MB, free: 2.328 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.1521, allocations: 43.42 kB / 494.2 MB, free: 2.285 MB / 366.1 MB Notification: Performance of SimCode: time 5.91e-07/0.1521, allocations: 0 / 494.2 MB, free: 2.285 MB / 366.1 MB Notification: Performance of Templates: time 0.01351/0.1656, allocations: 9.156 MB / 0.4915 GB, free: 9.148 MB / 382.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches