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.001445/0.001445, allocations: 113.6 kB / 17.69 MB, free: 5.309 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.001594/0.001594, allocations: 192 kB / 18.63 MB, free: 4.375 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.357/1.357, allocations: 222.9 MB / 242.3 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2512/0.2512, allocations: 38.04 MB / 330.5 MB, free: 8.797 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 65.17 kB / 400.3 MB, free: 33.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1028, allocations: 58.07 MB / 458.3 MB, free: 7.348 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.007171/0.11, allocations: 6.075 MB / 464.4 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.1129, allocations: 1.426 MB / 465.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004199/0.1134, allocations: 19.88 kB / 465.9 MB, free: 15.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005132/0.114, allocations: 150.9 kB / 466 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008862/0.1149, allocations: 378 kB / 466.4 MB, free: 15.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000522/0.1154, allocations: 199.6 kB / 466.6 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008841/0.1163, allocations: 0.915 MB / 467.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003749/0.1167, allocations: 274.7 kB / 467.7 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005581/0.1172, allocations: 402.3 kB / 468.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006505/0.1179, allocations: 474.3 kB / 468.6 MB, free: 13.03 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.355e-05/0.118, allocations: 48 kB / 468.6 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.578e-05/0.1181, allocations: 44 kB / 468.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002531/0.1184, allocations: 263.3 kB / 468.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002977/0.1187, allocations: 318.4 kB / 469.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006321/0.1193, allocations: 0.685 MB / 469.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.1193, allocations: 0 / 469.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1193, allocations: 0 / 469.9 MB, free: 11.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.398e-06/0.1193, allocations: 0 / 469.9 MB, free: 11.68 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.001648/0.121, allocations: 0.9486 MB / 470.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.121, allocations: 15.89 kB / 470.9 MB, free: 10.67 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001126/0.1212, allocations: 68.09 kB / 471 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009888/0.1222, allocations: 0.5609 MB / 471.5 MB, free: 10 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.1222, allocations: 45.11 kB / 471.6 MB, free: 9.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.594e-05/0.1223, allocations: 48 kB / 471.6 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008507/0.1232, allocations: 0.6249 MB / 472.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.877e-05/0.1232, allocations: 7.938 kB / 472.3 MB, free: 9.242 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.632e-05/0.1232, allocations: 16 kB / 472.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000111/0.1234, allocations: 32.97 kB / 472.3 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007444/0.1241, allocations: 0.5074 MB / 472.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002952/0.1271, allocations: 2.218 MB / 475 MB, free: 6.367 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000794/0.1279, allocations: 0.4893 MB / 475.5 MB, free: 5.859 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006025/0.1285, allocations: 353.4 kB / 475.9 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.1e-05/0.1285, allocations: 11.98 kB / 475.9 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.807e-05/0.1286, allocations: 42.5 kB / 475.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.104e-06/0.1286, allocations: 0 / 475.9 MB, free: 5.449 MB / 350.1 MB Notification: Performance of matching and sorting (n=47): time 0.003278/0.1319, allocations: 1.741 MB / 477.7 MB, free: 3.633 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.1319, allocations: 89.03 kB / 477.7 MB, free: 3.527 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004273/0.1324, allocations: 421.9 kB / 478.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.107e-05/0.1324, allocations: 29.7 kB / 478.2 MB, free: 3.07 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001821/0.1326, allocations: 296.5 kB / 478.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001112/0.1327, allocations: 165.6 kB / 478.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.1329, allocations: 98.16 kB / 478.7 MB, free: 2.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.133, allocations: 362.8 kB / 479.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.1333, allocations: 189 kB / 479.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000352/0.1337, allocations: 307.6 kB / 479.6 MB, free: 1.613 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.002526/0.1362, allocations: 1.234 MB / 480.8 MB, free: 316 kB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.605e-06/0.1362, allocations: 0 / 480.8 MB, free: 316 kB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00117/0.1374, allocations: 0.7029 MB / 481.5 MB, free: 15.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.1374, allocations: 8 kB / 481.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.568e-06/0.1374, allocations: 4.469 kB / 481.5 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003924/0.1378, allocations: 140.7 kB / 481.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004536/0.1383, allocations: 111.8 kB / 481.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002973/0.1413, allocations: 2.615 MB / 484.4 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003638/0.1417, allocations: 24.03 kB / 484.4 MB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/0.1417, allocations: 23.98 kB / 484.4 MB, free: 12.52 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.0003595/0.1421, allocations: 229.5 kB / 484.7 MB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.925e-05/0.1422, allocations: 55.28 kB / 484.7 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001111/0.1433, allocations: 0.6464 MB / 485.4 MB, free: 11.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.1433, allocations: 11.98 kB / 485.4 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.1433, allocations: 4 kB / 485.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.1434, allocations: 3.938 kB / 485.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00221/0.1456, allocations: 1.381 MB / 486.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.339e-06/0.1456, allocations: 0 / 486.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003582/0.1459, allocations: 79.88 kB / 486.8 MB, free: 10.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004067/0.1464, allocations: 153 kB / 487 MB, free: 9.859 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.732e-05/0.1464, allocations: 12 kB / 487 MB, free: 9.848 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002882/0.1493, allocations: 2.622 MB / 489.6 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.1493, allocations: 0 / 489.6 MB, free: 7.086 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001433/0.1508, allocations: 0.9808 MB / 490.6 MB, free: 6.07 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001793/0.151, allocations: 132.4 kB / 490.7 MB, free: 5.922 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.705e-05/0.1511, allocations: 12 kB / 490.7 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003066/0.1514, allocations: 23.92 kB / 490.8 MB, free: 5.887 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.082e-05/0.1515, allocations: 39.94 kB / 490.8 MB, free: 5.848 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.1515, allocations: 16 kB / 490.8 MB, free: 5.832 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003619/0.1519, allocations: 295.1 kB / 491.1 MB, free: 5.547 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1519, allocations: 3.938 kB / 491.1 MB, free: 5.543 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007085/0.1526, allocations: 144 kB / 491.3 MB, free: 5.402 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.000164/0.1528, allocations: 109.4 kB / 491.4 MB, free: 5.289 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001224/0.154, allocations: 0.6599 MB / 492 MB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.154, allocations: 0 / 492 MB, free: 4.613 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006347/0.1547, allocations: 443.6 kB / 492.5 MB, free: 4.168 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007242/0.1554, allocations: 135.1 kB / 492.6 MB, free: 4.039 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.1576, allocations: 1.316 MB / 493.9 MB, free: 2.676 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005792/0.1582, allocations: 0.9292 MB / 494.8 MB, free: 1.719 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002962/0.1585, allocations: 104.7 kB / 494.9 MB, free: 1.617 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.1587, allocations: 39.44 kB / 495 MB, free: 1.578 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.1587, allocations: 0 / 495 MB, free: 1.578 MB / 366.1 MB Notification: Performance of Templates: time 0.01195/0.1706, allocations: 6.742 MB / 0.49 GB, free: 10.9 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 -s gbode -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