Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008483/0.0008484, allocations: 186.8 kB / 16.71 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.169/1.169, allocations: 225.7 MB / 243.2 MB, free: 8.457 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007192/0.0007192, allocations: 103.1 kB / 294.4 MB, free: 9.504 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2616/0.2616, allocations: 38.18 MB / 383.7 MB, free: 40.27 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002898/0.0002899, allocations: 16 kB / 453.6 MB, free: 8.762 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2543, allocations: 59.14 MB / 0.5007 GB, free: 39.1 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006234/0.2606, allocations: 7.019 MB / 0.5075 GB, free: 36.96 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.003658/0.2643, allocations: 3.168 MB / 0.5106 GB, free: 34.23 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000807/0.2651, allocations: 52.09 kB / 0.5107 GB, free: 34.21 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006045/0.2657, allocations: 133.7 kB / 0.5108 GB, free: 34.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001208/0.2669, allocations: 385.3 kB / 0.5112 GB, free: 33.93 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001343/0.2683, allocations: 320.2 kB / 0.5115 GB, free: 33.78 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002183/0.2705, allocations: 1.506 MB / 0.513 GB, free: 33.29 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001247/0.2717, allocations: 0.912 MB / 0.5138 GB, free: 32.63 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007735/0.2725, allocations: 381.8 kB / 0.5142 GB, free: 32.48 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008859/0.2734, allocations: 0.5619 MB / 0.5148 GB, free: 32.29 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002042/0.2736, allocations: 36.47 kB / 0.5148 GB, free: 32.29 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006679/0.2743, allocations: 254.2 kB / 0.515 GB, free: 32.22 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003952/0.2747, allocations: 327.9 kB / 0.5153 GB, free: 32.13 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006216/0.2753, allocations: 415.1 kB / 0.5157 GB, free: 31.88 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009957/0.2764, allocations: 0.9774 MB / 0.5167 GB, free: 31.59 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.2764, allocations: 10.56 kB / 0.5167 GB, free: 31.58 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.2764, allocations: 0 / 0.5167 GB, free: 31.58 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.698e-05/0.2764, allocations: 0 / 0.5167 GB, free: 31.58 MB / 378.7 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.001832/0.2782, allocations: 0.9731 MB / 0.5177 GB, free: 30.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.922e-05/0.2783, allocations: 13.19 kB / 0.5177 GB, free: 30.91 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007279/0.279, allocations: 132.5 kB / 0.5178 GB, free: 30.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009794/0.28, allocations: 0.577 MB / 0.5184 GB, free: 30.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.59e-05/0.2801, allocations: 48.16 kB / 0.5184 GB, free: 30.47 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001562/0.2802, allocations: 78.34 kB / 0.5185 GB, free: 30.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001289/0.2815, allocations: 1.007 MB / 0.5195 GB, free: 30.02 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.074e-05/0.2816, allocations: 3.938 kB / 0.5195 GB, free: 30.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.038e-05/0.2816, allocations: 26 kB / 0.5195 GB, free: 30 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001668/0.2818, allocations: 72.83 kB / 0.5196 GB, free: 29.99 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001158/0.283, allocations: 0.9717 MB / 0.5205 GB, free: 29.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003646/0.2866, allocations: 3.277 MB / 0.5237 GB, free: 27.76 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008484/0.2875, allocations: 0.6765 MB / 0.5244 GB, free: 27.49 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004754/0.288, allocations: 434.1 kB / 0.5248 GB, free: 27.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.223e-05/0.288, allocations: 10.86 kB / 0.5248 GB, free: 27.31 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.856e-05/0.288, allocations: 38.19 kB / 0.5248 GB, free: 27.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=73): time 2.475e-06/0.2881, allocations: 3.984 kB / 0.5248 GB, free: 27.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=75): time 0.00294/0.291, allocations: 2.432 MB / 0.5272 GB, free: 25.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.809e-05/0.291, allocations: 90.73 kB / 0.5273 GB, free: 25.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003878/0.2914, allocations: 434.6 kB / 0.5277 GB, free: 25.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.268e-05/0.2915, allocations: 36.8 kB / 0.5277 GB, free: 25.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001366/0.2916, allocations: 366 kB / 0.5281 GB, free: 25.33 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000121/0.2917, allocations: 257.5 kB / 0.5283 GB, free: 25.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.316e-05/0.2918, allocations: 15.19 kB / 0.5284 GB, free: 25.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.148e-05/0.2919, allocations: 381.3 kB / 0.5287 GB, free: 24.77 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003869/0.2923, allocations: 335.3 kB / 0.529 GB, free: 24.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000445/0.2927, allocations: 0.5182 MB / 0.5295 GB, free: 24.35 MB / 378.7 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.00416/0.2969, allocations: 2.223 MB / 0.5317 GB, free: 23.45 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.2969, allocations: 7.156 kB / 0.5317 GB, free: 23.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001235/0.2981, allocations: 1.088 MB / 0.5328 GB, free: 22.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.556e-05/0.2982, allocations: 6.156 kB / 0.5328 GB, free: 22.96 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.2982, allocations: 6.562 kB / 0.5328 GB, free: 22.96 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001261/0.2983, allocations: 44.97 kB / 0.5328 GB, free: 22.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006578/0.299, allocations: 190.5 kB / 0.533 GB, free: 22.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007764/0.2998, allocations: 1.399 MB / 0.5344 GB, free: 21.55 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003553/0.3001, allocations: 38.3 kB / 0.5344 GB, free: 21.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.077e-05/0.3002, allocations: 32.22 kB / 0.5345 GB, free: 21.54 MB / 378.7 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 (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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003013/0.3005, allocations: 272.7 kB / 0.5347 GB, free: 21.35 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.794e-05/0.3006, allocations: 64.69 kB / 0.5348 GB, free: 21.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001098/0.3017, allocations: 0.9684 MB / 0.5357 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.907e-05/0.3017, allocations: 12.94 kB / 0.5357 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.347e-06/0.3017, allocations: 0 / 0.5357 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.3018, allocations: 3.188 kB / 0.5357 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002424/0.3042, allocations: 2.013 MB / 0.5377 GB, free: 19.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.3042, allocations: 3.344 kB / 0.5377 GB, free: 19.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005765/0.3048, allocations: 150.5 kB / 0.5379 GB, free: 19.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.865e-05/0.3049, allocations: 46.27 kB / 0.5379 GB, free: 19.76 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.147e-05/0.3049, allocations: 21.94 kB / 0.5379 GB, free: 19.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006132/0.3055, allocations: 1.382 MB / 0.5393 GB, free: 18.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.3056, allocations: 10.97 kB / 0.5393 GB, free: 18.4 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001412/0.307, allocations: 1.523 MB / 0.5408 GB, free: 17.54 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.806e-05/0.3071, allocations: 145.5 kB / 0.5409 GB, free: 17.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.701e-05/0.3072, allocations: 29.12 kB / 0.5409 GB, free: 17.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003389/0.3075, allocations: 32.09 kB / 0.541 GB, free: 17.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.664e-05/0.3076, allocations: 63.02 kB / 0.541 GB, free: 17.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.229e-05/0.3076, allocations: 21.84 kB / 0.541 GB, free: 17.36 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002372/0.3079, allocations: 298.5 kB / 0.5413 GB, free: 17.21 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3079, allocations: 4 kB / 0.5413 GB, free: 17.21 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000536/0.3084, allocations: 181.1 kB / 0.5415 GB, free: 17.18 MB / 378.7 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 (75): * Single equations (assignments): 71 * Array equations: 2 * 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 {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001979/0.3086, allocations: 169 kB / 0.5417 GB, free: 17.07 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001063/0.3097, allocations: 0.9432 MB / 0.5426 GB, free: 16.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.327e-06/0.3097, allocations: 1.438 kB / 0.5426 GB, free: 16.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005036/0.3102, allocations: 0.5269 MB / 0.5431 GB, free: 16.43 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009153/0.3112, allocations: 139.8 kB / 0.5432 GB, free: 16.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002347/0.3135, allocations: 2.411 MB / 0.5456 GB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004358/0.314, allocations: 1.018 MB / 0.5466 GB, free: 14.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005244/0.3145, allocations: 201.4 kB / 0.5468 GB, free: 14.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001628/0.3147, allocations: 51.44 kB / 0.5468 GB, free: 14.1 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3147, allocations: 0 / 0.5468 GB, free: 14.1 MB / 378.7 MB Notification: Performance of Templates: time 0.01368/0.3284, allocations: 7.521 MB / 0.5542 GB, free: 12.75 MB / 378.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.makefile (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) 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