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.0006385/0.0006385, allocations: 83.66 kB / 16.31 MB, free: 6.449 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.0007485/0.0007486, allocations: 179.7 kB / 17.21 MB, free: 6.32 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.228/1.228, allocations: 223.3 MB / 241.2 MB, free: 5.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2697/0.2697, allocations: 38.08 MB / 330.4 MB, free: 14.15 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002785/0.0002786, allocations: 12 kB / 400.1 MB, free: 9.25 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2401/0.2404, allocations: 59.16 MB / 459.2 MB, free: 30.35 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.005592/0.246, allocations: 6.887 MB / 466.1 MB, free: 25.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003552/0.2496, allocations: 2.139 MB / 468.3 MB, free: 23.95 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005081/0.2501, allocations: 53.5 kB / 468.3 MB, free: 23.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004579/0.2506, allocations: 169.7 kB / 468.5 MB, free: 23.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008946/0.2515, allocations: 471.6 kB / 468.9 MB, free: 23.58 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000979/0.2525, allocations: 356.1 kB / 469.3 MB, free: 23.43 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001095/0.2536, allocations: 1.203 MB / 470.5 MB, free: 22.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008147/0.2544, allocations: 0.6372 MB / 471.1 MB, free: 22.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004725/0.2549, allocations: 379.8 kB / 471.5 MB, free: 22.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006739/0.2556, allocations: 0.5593 MB / 472.1 MB, free: 22.28 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.472e-05/0.2557, allocations: 35.59 kB / 472.1 MB, free: 22.28 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004459/0.2561, allocations: 193.6 kB / 472.3 MB, free: 22.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003288/0.2565, allocations: 336 kB / 472.6 MB, free: 22.15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.2566, allocations: 163.7 kB / 472.8 MB, free: 22.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007622/0.2574, allocations: 0.7531 MB / 473.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.2574, allocations: 1.969 kB / 473.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.2574, allocations: 0.75 kB / 473.5 MB, free: 21.89 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.437e-05/0.2574, allocations: 0 / 473.5 MB, free: 21.89 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.00149/0.2589, allocations: 1.001 MB / 474.5 MB, free: 21.17 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.877e-05/0.259, allocations: 11.91 kB / 474.5 MB, free: 21.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005938/0.2596, allocations: 122.8 kB / 474.7 MB, free: 21.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007434/0.2603, allocations: 0.5676 MB / 475.2 MB, free: 20.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.711e-05/0.2604, allocations: 51.94 kB / 475.3 MB, free: 20.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000139/0.2605, allocations: 73.25 kB / 475.3 MB, free: 20.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/0.2618, allocations: 1.001 MB / 476.4 MB, free: 20 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.02e-05/0.2618, allocations: 7.938 kB / 476.4 MB, free: 20 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/0.2619, allocations: 22.62 kB / 476.4 MB, free: 19.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001713/0.262, allocations: 83.23 kB / 476.5 MB, free: 19.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.2634, allocations: 0.9714 MB / 477.4 MB, free: 19.5 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003727/0.2671, allocations: 3.279 MB / 480.7 MB, free: 17.05 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000895/0.268, allocations: 0.6754 MB / 481.4 MB, free: 16.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005178/0.2685, allocations: 418 kB / 481.8 MB, free: 16.49 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.893e-05/0.2686, allocations: 15.16 kB / 481.8 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.869e-05/0.2686, allocations: 38.59 kB / 481.8 MB, free: 16.44 MB / 350.1 MB Notification: Performance of pre-optimization done (n=73): time 2.584e-06/0.2686, allocations: 4 kB / 481.9 MB, free: 16.44 MB / 350.1 MB Notification: Performance of matching and sorting (n=75): time 0.003199/0.2718, allocations: 2.434 MB / 484.3 MB, free: 14.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.9e-05/0.2719, allocations: 89.61 kB / 484.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003404/0.2722, allocations: 433.8 kB / 484.8 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.677e-05/0.2723, allocations: 37.7 kB / 484.8 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.2724, allocations: 359.5 kB / 485.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001219/0.2725, allocations: 256.3 kB / 485.4 MB, free: 13.37 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.413e-05/0.2726, allocations: 16 kB / 485.5 MB, free: 13.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.666e-05/0.2727, allocations: 378.8 kB / 485.8 MB, free: 12.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003802/0.273, allocations: 341.8 kB / 486.2 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004223/0.2735, allocations: 0.5146 MB / 486.7 MB, free: 12.06 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.003057/0.2765, allocations: 1.4 MB / 488.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.028e-06/0.2766, allocations: 3.953 kB / 488.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001224/0.2778, allocations: 1.09 MB / 489.2 MB, free: 9.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.543e-05/0.2778, allocations: 8 kB / 489.2 MB, free: 9.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.2778, allocations: 4 kB / 489.2 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001178/0.2779, allocations: 45.38 kB / 489.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006176/0.2786, allocations: 187.7 kB / 489.4 MB, free: 9.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006902/0.2793, allocations: 1.39 MB / 490.8 MB, free: 7.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003802/0.2797, allocations: 39.92 kB / 490.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.383e-05/0.2797, allocations: 31.98 kB / 490.9 MB, free: 7.68 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 (95): * Single equations (assignments): 92 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003102/0.28, allocations: 277.5 kB / 491.1 MB, free: 7.398 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.26e-05/0.2801, allocations: 59.25 kB / 491.2 MB, free: 7.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001134/0.2813, allocations: 0.9661 MB / 492.2 MB, free: 6.348 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.149e-05/0.2813, allocations: 27.94 kB / 492.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2813, allocations: 0 / 492.2 MB, free: 6.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.264e-06/0.2813, allocations: 3.938 kB / 492.2 MB, free: 6.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002318/0.2837, allocations: 2.006 MB / 494.2 MB, free: 4.176 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.2837, allocations: 8 kB / 494.2 MB, free: 4.168 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005424/0.2842, allocations: 143.8 kB / 494.3 MB, free: 4.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.209e-05/0.2843, allocations: 36.84 kB / 494.4 MB, free: 3.988 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.071e-05/0.2844, allocations: 23.98 kB / 494.4 MB, free: 3.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006287/0.285, allocations: 1.394 MB / 495.8 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.285, allocations: 8 kB / 495.8 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001356/0.2864, allocations: 1.514 MB / 497.3 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.805e-05/0.2865, allocations: 148.2 kB / 497.5 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.709e-05/0.2866, allocations: 28.05 kB / 497.5 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.2869, allocations: 27.97 kB / 497.5 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.096e-05/0.287, allocations: 64.39 kB / 497.6 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.94e-05/0.287, allocations: 27.98 kB / 497.6 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002306/0.2872, allocations: 295.1 kB / 497.9 MB, free: 220 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2873, allocations: 0 / 497.9 MB, free: 220 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006323/0.2879, allocations: 180 kB / 498.1 MB, free: 40 kB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (75): * Single equations (assignments): 71 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002195/0.2881, allocations: 143.1 kB / 498.2 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001296/0.2894, allocations: 0.9351 MB / 499.1 MB, free: 14.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.2894, allocations: 4.062 kB / 499.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006109/0.2901, allocations: 0.5171 MB / 499.7 MB, free: 14.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/0.2908, allocations: 141 kB / 499.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002659/0.2935, allocations: 2.365 MB / 0.4904 GB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005436/0.294, allocations: 1.017 MB / 0.4914 GB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005352/0.2946, allocations: 205.4 kB / 0.4916 GB, free: 10.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001665/0.2948, allocations: 55.42 kB / 0.4916 GB, free: 10.52 MB / 366.1 MB Notification: Performance of SimCode: time 2.21e-07/0.2948, allocations: 0 / 0.4916 GB, free: 10.52 MB / 366.1 MB Notification: Performance of Templates: time 0.01113/0.3059, allocations: 7.29 MB / 0.4988 GB, free: 3.285 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