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.001125/0.001125, allocations: 111.6 kB / 17.06 MB, free: 6 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.001073/0.001073, allocations: 198.8 kB / 18.01 MB, free: 5.074 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.424/1.424, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1824/0.1824, allocations: 38.04 MB / 329.9 MB, free: 8.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 68.03 kB / 458.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.3513, allocations: 58.05 MB / 0.5041 GB, free: 7.77 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.006704/0.358, allocations: 6.497 MB / 0.5104 GB, free: 3.258 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0029/0.3609, allocations: 1.875 MB / 0.5123 GB, free: 1.949 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003375/0.3613, allocations: 33.53 kB / 0.5123 GB, free: 1.934 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001212/0.3625, allocations: 435.2 kB / 0.5127 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007964/0.3633, allocations: 426 kB / 0.5131 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009212/0.3643, allocations: 346.2 kB / 0.5135 GB, free: 1.277 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001451/0.3657, allocations: 1.034 MB / 0.5145 GB, free: 0.832 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007638/0.3665, allocations: 0.4915 MB / 0.5149 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006613/0.3672, allocations: 463.4 kB / 0.5154 GB, free: 440 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007694/0.368, allocations: 0.5784 MB / 0.516 GB, free: 220 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000121/0.3681, allocations: 66.47 kB / 0.516 GB, free: 220 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005674/0.3687, allocations: 264 kB / 0.5163 GB, free: 152 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000477/0.3692, allocations: 366 kB / 0.5166 GB, free: 24 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005315/0.3697, allocations: 431.9 kB / 0.517 GB, free: 15.77 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001465/0.3712, allocations: 1.035 MB / 0.518 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.3712, allocations: 1.469 kB / 0.518 GB, free: 15.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.055e-06/0.3712, allocations: 0 / 0.518 GB, free: 15.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.3712, allocations: 5.953 kB / 0.518 GB, free: 15.38 MB / 398.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.002274/0.3735, allocations: 1.12 MB / 0.5191 GB, free: 14.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.076e-05/0.3735, allocations: 12.83 kB / 0.5192 GB, free: 14.63 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007484/0.3743, allocations: 132.8 kB / 0.5193 GB, free: 14.58 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00127/0.3756, allocations: 0.6062 MB / 0.5199 GB, free: 14.2 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.172e-05/0.3756, allocations: 51.73 kB / 0.5199 GB, free: 14.18 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001867/0.3758, allocations: 71.89 kB / 0.52 GB, free: 14.16 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.3774, allocations: 1.01 MB / 0.521 GB, free: 13.73 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.44e-05/0.3775, allocations: 9.781 kB / 0.521 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.431e-05/0.3776, allocations: 34.89 kB / 0.521 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002128/0.3778, allocations: 71.3 kB / 0.5211 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001563/0.3794, allocations: 0.9772 MB / 0.522 GB, free: 13.39 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00506/0.3844, allocations: 3.249 MB / 0.5252 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.3856, allocations: 0.6911 MB / 0.5259 GB, free: 11.18 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006579/0.3863, allocations: 425.9 kB / 0.5263 GB, free: 11.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.26e-05/0.3864, allocations: 8.203 kB / 0.5263 GB, free: 11.02 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/0.3864, allocations: 46.12 kB / 0.5263 GB, free: 10.97 MB / 398.1 MB Notification: Performance of pre-optimization done (n=73): time 2.645e-06/0.3864, allocations: 1.438 kB / 0.5263 GB, free: 10.97 MB / 398.1 MB Notification: Performance of matching and sorting (n=75): time 0.005026/0.3915, allocations: 2.433 MB / 0.5287 GB, free: 9.688 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.637e-05/0.3916, allocations: 89.28 kB / 0.5288 GB, free: 9.59 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006713/0.3922, allocations: 442.9 kB / 0.5292 GB, free: 9.379 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.939e-05/0.3923, allocations: 37.59 kB / 0.5293 GB, free: 9.34 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/0.3926, allocations: 359.2 kB / 0.5296 GB, free: 9.051 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002929/0.3929, allocations: 262.7 kB / 0.5299 GB, free: 8.844 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002672/0.3932, allocations: 147.3 kB / 0.53 GB, free: 8.762 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000193/0.3934, allocations: 379.7 kB / 0.5304 GB, free: 8.398 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005689/0.394, allocations: 342.3 kB / 0.5307 GB, free: 8.238 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007092/0.3947, allocations: 0.5179 MB / 0.5312 GB, free: 7.852 MB / 398.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.005613/0.4003, allocations: 2.238 MB / 0.5334 GB, free: 6.578 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.4003, allocations: 1.625 kB / 0.5334 GB, free: 6.578 MB / 398.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001969/0.4023, allocations: 1.094 MB / 0.5344 GB, free: 5.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.4024, allocations: 7.281 kB / 0.5345 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.4024, allocations: 5.375 kB / 0.5345 GB, free: 5.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001711/0.4026, allocations: 39.66 kB / 0.5345 GB, free: 5.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008493/0.4034, allocations: 194.8 kB / 0.5347 GB, free: 5.906 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001504/0.4049, allocations: 1.504 MB / 0.5362 GB, free: 4.391 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006716/0.4056, allocations: 43.58 kB / 0.5362 GB, free: 4.363 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.3e-05/0.4057, allocations: 32.05 kB / 0.5362 GB, free: 4.355 MB / 398.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[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.0006353/0.4063, allocations: 274.9 kB / 0.5365 GB, free: 4.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.4066, allocations: 64.88 kB / 0.5366 GB, free: 4.109 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001834/0.4084, allocations: 0.9665 MB / 0.5375 GB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.231e-05/0.4084, allocations: 18.14 kB / 0.5375 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.582e-06/0.4085, allocations: 1.125 kB / 0.5375 GB, free: 3.508 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.39e-05/0.4085, allocations: 7.922 kB / 0.5375 GB, free: 3.5 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003937/0.4124, allocations: 2.008 MB / 0.5395 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-05/0.4125, allocations: 4.125 kB / 0.5395 GB, free: 2.141 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008325/0.4133, allocations: 155.2 kB / 0.5396 GB, free: 2.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001342/0.4134, allocations: 37.45 kB / 0.5397 GB, free: 2.078 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.771e-05/0.4135, allocations: 17.62 kB / 0.5397 GB, free: 2.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001373/0.4149, allocations: 1.501 MB / 0.5412 GB, free: 0.5547 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.056e-05/0.4149, allocations: 9.438 kB / 0.5412 GB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002355/0.4173, allocations: 1.534 MB / 0.5427 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.4175, allocations: 138.5 kB / 0.5428 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.786e-05/0.4176, allocations: 18 kB / 0.5428 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003679/0.418, allocations: 31.31 kB / 0.5428 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.4181, allocations: 65.23 kB / 0.5429 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.871e-05/0.4182, allocations: 28.94 kB / 0.5429 GB, free: 15.34 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005669/0.4187, allocations: 294.3 kB / 0.5432 GB, free: 15.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.4187, allocations: 0 / 0.5432 GB, free: 15.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009699/0.4197, allocations: 186.4 kB / 0.5434 GB, free: 15.14 MB / 414.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 (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.0003164/0.42, allocations: 168.8 kB / 0.5435 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001583/0.4216, allocations: 0.9624 MB / 0.5445 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.938e-06/0.4217, allocations: 4 kB / 0.5445 GB, free: 14.04 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007656/0.4224, allocations: 0.5186 MB / 0.545 GB, free: 13.51 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008705/0.4233, allocations: 148.7 kB / 0.5451 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003042/0.4264, allocations: 1.97 MB / 0.5471 GB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007018/0.4271, allocations: 1.013 MB / 0.5481 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000519/0.4276, allocations: 205.3 kB / 0.5482 GB, free: 10.07 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001715/0.4278, allocations: 55.42 kB / 0.5483 GB, free: 10.02 MB / 414.1 MB Notification: Performance of SimCode: time 3e-07/0.4278, allocations: 0 / 0.5483 GB, free: 10.02 MB / 414.1 MB Notification: Performance of Templates: time 0.01494/0.4427, allocations: 8.201 MB / 0.5563 GB, free: 1.871 MB / 414.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches