Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.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.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="Time|meterAC.i.1.|meterAC.i.2.|meterAC.i.3.|meterAC.p.1.|meterAC.p.2.|meterAC.p.3.|meterAC.v.1.|meterAC.v.2.|meterAC.v.3.|meterDC.i|meterDC.p|meterDC.v",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008282/0.0008283, allocations: 93.88 kB / 16.3 MB, free: 6.457 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.0009092/0.0009092, allocations: 183.5 kB / 17.2 MB, free: 6.34 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.211/1.211, allocations: 223.2 MB / 241.1 MB, free: 5.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2824/0.2824, allocations: 38.07 MB / 330.3 MB, free: 14.22 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002873/0.0002874, allocations: 8 kB / 400 MB, free: 9.297 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2424, allocations: 59.16 MB / 459.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.005964/0.2484, allocations: 6.6 MB / 465.7 MB, free: 25.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003058/0.2515, allocations: 2.162 MB / 467.9 MB, free: 24.14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003749/0.2519, allocations: 51.91 kB / 467.9 MB, free: 24.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004028/0.2523, allocations: 156.2 kB / 468.1 MB, free: 24.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007813/0.2531, allocations: 393.1 kB / 468.5 MB, free: 23.78 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008345/0.2539, allocations: 352.5 kB / 468.8 MB, free: 23.62 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006062/0.2545, allocations: 0.5483 MB / 469.4 MB, free: 23.35 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008292/0.2554, allocations: 0.6458 MB / 470 MB, free: 22.96 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004196/0.2558, allocations: 330.1 kB / 470.3 MB, free: 22.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005542/0.2564, allocations: 410.5 kB / 470.7 MB, free: 22.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.09e-05/0.2564, allocations: 42.94 kB / 470.8 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004246/0.2569, allocations: 180.7 kB / 471 MB, free: 22.64 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003474/0.2572, allocations: 304.4 kB / 471.2 MB, free: 22.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001499/0.2574, allocations: 165.8 kB / 471.4 MB, free: 22.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008068/0.2582, allocations: 0.7519 MB / 472.2 MB, free: 22.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2582, allocations: 1.25 kB / 472.2 MB, free: 22.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2582, allocations: 0 / 472.2 MB, free: 22.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.364e-05/0.2582, allocations: 0 / 472.2 MB, free: 22.29 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.001708/0.26, allocations: 1.002 MB / 473.2 MB, free: 21.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.207e-05/0.26, allocations: 9.188 kB / 473.2 MB, free: 21.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006855/0.2607, allocations: 133.9 kB / 473.3 MB, free: 21.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009634/0.2617, allocations: 0.5604 MB / 473.9 MB, free: 21.21 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.677e-05/0.2617, allocations: 50.77 kB / 473.9 MB, free: 21.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.2619, allocations: 67.45 kB / 474 MB, free: 21.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00138/0.2633, allocations: 1.003 MB / 475 MB, free: 20.74 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/0.2633, allocations: 1.375 kB / 475 MB, free: 20.74 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.728e-05/0.2634, allocations: 21.5 kB / 475 MB, free: 20.72 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001966/0.2636, allocations: 81.08 kB / 475.1 MB, free: 20.71 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001428/0.265, allocations: 0.9704 MB / 476.1 MB, free: 20.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004097/0.2691, allocations: 3.274 MB / 479.3 MB, free: 17.98 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001044/0.2702, allocations: 0.6994 MB / 480 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.462e-05/0.2702, allocations: 12.89 kB / 480 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.2703, allocations: 38.12 kB / 480.1 MB, free: 17.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.204e-06/0.2703, allocations: 0 / 480.1 MB, free: 17.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003189/0.2735, allocations: 2.564 MB / 482.6 MB, free: 15.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.2735, allocations: 84.98 kB / 482.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003914/0.2739, allocations: 442.7 kB / 483.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.815e-05/0.274, allocations: 35.55 kB / 483.2 MB, free: 15.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001343/0.2741, allocations: 365.5 kB / 483.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.2742, allocations: 260.3 kB / 483.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.315e-05/0.2743, allocations: 16 kB / 483.8 MB, free: 14.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.998e-05/0.2743, allocations: 370.8 kB / 484.2 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00037/0.2747, allocations: 337.8 kB / 484.5 MB, free: 14.16 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004215/0.2751, allocations: 0.5107 MB / 485 MB, free: 13.58 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.003155/0.2783, allocations: 1.393 MB / 486.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.2783, allocations: 0 / 486.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001137/0.2795, allocations: 1.082 MB / 487.5 MB, free: 11.06 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.494e-05/0.2795, allocations: 12.03 kB / 487.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.2795, allocations: 11.94 kB / 487.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001014/0.2796, allocations: 28.84 kB / 487.6 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006784/0.2803, allocations: 207.7 kB / 487.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006703/0.281, allocations: 1.335 MB / 489.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003685/0.2814, allocations: 39.97 kB / 489.1 MB, free: 9.289 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.287e-05/0.2814, allocations: 31.98 kB / 489.2 MB, free: 9.258 MB / 350.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[3] = ind.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (96): * Single equations (assignments): 93 * Array equations: 2 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002906/0.2817, allocations: 277.8 kB / 489.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.303e-05/0.2818, allocations: 63.2 kB / 489.5 MB, free: 8.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001061/0.2829, allocations: 0.9621 MB / 490.5 MB, free: 7.926 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.896e-05/0.2829, allocations: 12 kB / 490.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.2829, allocations: 4 kB / 490.5 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.304e-06/0.2829, allocations: 3.984 kB / 490.5 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002357/0.2853, allocations: 1.985 MB / 492.5 MB, free: 5.789 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.2853, allocations: 4 kB / 492.5 MB, free: 5.785 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000608/0.2859, allocations: 167.7 kB / 492.6 MB, free: 5.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.964e-05/0.286, allocations: 29.41 kB / 492.7 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.952e-05/0.286, allocations: 28 kB / 492.7 MB, free: 5.562 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005205/0.2866, allocations: 1.327 MB / 494 MB, free: 4.102 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.687e-06/0.2866, allocations: 8 kB / 494 MB, free: 4.094 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001369/0.288, allocations: 1.724 MB / 495.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.613e-05/0.2881, allocations: 148.2 kB / 495.9 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.892e-05/0.2881, allocations: 23.98 kB / 495.9 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003226/0.2885, allocations: 36.09 kB / 495.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.759e-05/0.2885, allocations: 64.39 kB / 496 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.74e-05/0.2886, allocations: 20 kB / 496 MB, free: 1.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002241/0.2888, allocations: 303.1 kB / 496.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2888, allocations: 0 / 496.3 MB, free: 1.551 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005963/0.2894, allocations: 180 kB / 496.5 MB, free: 1.375 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 6 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],ind.i[1],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 (76): * Single equations (assignments): 72 * Array equations: 2 * 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 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001701/0.2896, allocations: 139.1 kB / 496.6 MB, free: 1.23 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009919/0.2906, allocations: 0.9314 MB / 497.6 MB, free: 300 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.096e-06/0.2906, allocations: 8 kB / 497.6 MB, free: 292 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005388/0.2912, allocations: 0.5093 MB / 498.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005862/0.2918, allocations: 131 kB / 498.2 MB, free: 15.63 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002636/0.2944, allocations: 2.365 MB / 0.4888 GB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005442/0.295, allocations: 1.033 MB / 0.4899 GB, free: 12.12 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005121/0.2955, allocations: 201.4 kB / 0.49 GB, free: 11.92 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.2956, allocations: 63.36 kB / 0.4901 GB, free: 11.86 MB / 366.1 MB Notification: Performance of SimCode: time 2.3e-07/0.2956, allocations: 4 kB / 0.4901 GB, free: 11.85 MB / 366.1 MB Notification: Performance of Templates: time 0.01134/0.307, allocations: 7.229 MB / 0.4972 GB, free: 4.68 MB / 366.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches