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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001235/0.001235, allocations: 188.9 kB / 17.27 MB, free: 4.504 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.593/1.593, allocations: 205.1 MB / 223.1 MB, free: 8.465 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 107.9 kB / 270.5 MB, free: 8.422 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1756/0.1756, allocations: 38.01 MB / 355.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001133/0.001133, allocations: 51.92 kB / 421.9 MB, free: 37.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4699/0.471, allocations: 55.24 MB / 477.1 MB, free: 9.902 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.01535/0.4865, allocations: 7.342 MB / 484.4 MB, free: 4.691 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.006526/0.4931, allocations: 1.835 MB / 486.3 MB, free: 3.383 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001758/0.4949, allocations: 54 kB / 486.3 MB, free: 3.359 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009123/0.4958, allocations: 117.5 kB / 486.4 MB, free: 3.301 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001984/0.4979, allocations: 362.5 kB / 486.8 MB, free: 3.102 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008904/0.4988, allocations: 166.5 kB / 487 MB, free: 3.012 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002587/0.5014, allocations: 1.392 MB / 488.4 MB, free: 2.562 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004999/0.5019, allocations: 232.5 kB / 488.6 MB, free: 2.473 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001015/0.503, allocations: 355.5 kB / 488.9 MB, free: 2.324 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001274/0.5042, allocations: 489 kB / 489.4 MB, free: 2.16 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002276/0.5045, allocations: 35.91 kB / 489.4 MB, free: 2.156 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003395/0.5048, allocations: 31.94 kB / 489.5 MB, free: 2.156 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005031/0.5054, allocations: 240.1 kB / 489.7 MB, free: 2.086 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007647/0.5061, allocations: 307.1 kB / 490 MB, free: 1.914 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001937/0.5081, allocations: 0.6476 MB / 490.7 MB, free: 1.66 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.908e-06/0.5081, allocations: 0 / 490.7 MB, free: 1.66 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.5081, allocations: 0 / 490.7 MB, free: 1.66 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.409e-05/0.5082, allocations: 1.25 kB / 490.7 MB, free: 1.66 MB / 314.7 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.00291/0.5111, allocations: 0.9454 MB / 491.6 MB, free: 1 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.103e-05/0.5112, allocations: 9.844 kB / 491.6 MB, free: 1 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.5114, allocations: 80.92 kB / 491.7 MB, free: 0.9531 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001456/0.5129, allocations: 0.5218 MB / 492.2 MB, free: 0.6016 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.48e-05/0.5129, allocations: 45.55 kB / 492.3 MB, free: 0.5781 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001289/0.5131, allocations: 48.03 kB / 492.3 MB, free: 0.5625 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.5147, allocations: 0.6251 MB / 492.9 MB, free: 268 kB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.401e-05/0.5147, allocations: 5.25 kB / 492.9 MB, free: 264 kB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.129e-05/0.5148, allocations: 16.03 kB / 492.9 MB, free: 252 kB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001736/0.515, allocations: 34.3 kB / 493 MB, free: 252 kB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.5163, allocations: 0.505 MB / 493.5 MB, free: 88 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00545/0.5218, allocations: 2.23 MB / 495.7 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001516/0.5233, allocations: 0.4931 MB / 496.2 MB, free: 14.43 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0012/0.5246, allocations: 341.1 kB / 496.5 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.424e-05/0.5246, allocations: 12.33 kB / 496.6 MB, free: 14.32 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/0.5247, allocations: 41.7 kB / 496.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 3.497e-06/0.5247, allocations: 0 / 496.6 MB, free: 14.27 MB / 330.7 MB Notification: Performance of matching and sorting (n=47): time 0.005845/0.5306, allocations: 1.744 MB / 498.3 MB, free: 13.33 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.03e-05/0.5307, allocations: 85.58 kB / 498.4 MB, free: 13.23 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007708/0.5314, allocations: 426.9 kB / 498.8 MB, free: 12.97 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.5315, allocations: 32.14 kB / 498.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003045/0.5318, allocations: 295.5 kB / 499.2 MB, free: 12.67 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.532, allocations: 166.1 kB / 499.3 MB, free: 12.53 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000246/0.5323, allocations: 92.62 kB / 499.4 MB, free: 12.47 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000213/0.5325, allocations: 364.4 kB / 499.8 MB, free: 12.12 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005109/0.5331, allocations: 189.8 kB / 500 MB, free: 12.03 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006217/0.5337, allocations: 302.2 kB / 0.4885 GB, free: 11.79 MB / 330.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.004482/0.5382, allocations: 1.253 MB / 0.4897 GB, free: 11.02 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.5382, allocations: 1.438 kB / 0.4897 GB, free: 11.02 MB / 330.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002075/0.5403, allocations: 0.7026 MB / 0.4904 GB, free: 10.66 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.277e-05/0.5404, allocations: 6.5 kB / 0.4904 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.7e-05/0.5404, allocations: 3.531 kB / 0.4904 GB, free: 10.66 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006817/0.5411, allocations: 143.6 kB / 0.4906 GB, free: 10.59 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007546/0.5418, allocations: 112.1 kB / 0.4907 GB, free: 10.56 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004626/0.5465, allocations: 2.382 MB / 0.493 GB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006546/0.5472, allocations: 27.28 kB / 0.493 GB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.622e-05/0.5473, allocations: 27.8 kB / 0.4931 GB, free: 8.555 MB / 330.7 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.0005713/0.5478, allocations: 229.9 kB / 0.4933 GB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.548, allocations: 51.62 kB / 0.4933 GB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001931/0.55, allocations: 0.6519 MB / 0.494 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/0.55, allocations: 9.641 kB / 0.494 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.55, allocations: 3.375 kB / 0.494 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.17e-05/0.55, allocations: 3.984 kB / 0.494 GB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004112/0.5541, allocations: 1.378 MB / 0.4953 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.866e-06/0.5542, allocations: 1.375 kB / 0.4953 GB, free: 6.977 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006038/0.5548, allocations: 72.27 kB / 0.4954 GB, free: 6.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007686/0.5556, allocations: 148.6 kB / 0.4955 GB, free: 6.891 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.976e-05/0.5557, allocations: 12.11 kB / 0.4956 GB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004627/0.5603, allocations: 2.361 MB / 0.4979 GB, free: 4.922 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.119e-06/0.5603, allocations: 2.5 kB / 0.4979 GB, free: 4.922 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01809/0.5784, allocations: 7.697 MB / 0.5054 GB, free: 13.35 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.5787, allocations: 128.4 kB / 0.5055 GB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.77e-05/0.5788, allocations: 12.03 kB / 0.5055 GB, free: 13.19 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004271/0.5793, allocations: 19.98 kB / 0.5055 GB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001578/0.5795, allocations: 35.89 kB / 0.5056 GB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.1e-05/0.5795, allocations: 20.06 kB / 0.5056 GB, free: 13.12 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000551/0.5801, allocations: 291.1 kB / 0.5059 GB, free: 12.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.5801, allocations: 0 / 0.5059 GB, free: 12.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001497/0.5816, allocations: 216 kB / 0.5061 GB, free: 12.62 MB / 346.7 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.0001916/0.5818, allocations: 111.2 kB / 0.5062 GB, free: 12.5 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.5836, allocations: 0.6566 MB / 0.5068 GB, free: 11.83 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.5836, allocations: 0 / 0.5068 GB, free: 11.83 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.5847, allocations: 454.8 kB / 0.5073 GB, free: 11.38 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001235/0.586, allocations: 126.4 kB / 0.5074 GB, free: 11.25 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0047/0.5907, allocations: 2.073 MB / 0.5094 GB, free: 9.109 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008314/0.5915, allocations: 0.9491 MB / 0.5103 GB, free: 8.129 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000721/0.5923, allocations: 116.7 kB / 0.5104 GB, free: 8.012 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001973/0.5925, allocations: 39.44 kB / 0.5105 GB, free: 7.973 MB / 346.7 MB Notification: Performance of SimCode: time 1.282e-06/0.5925, allocations: 0 / 0.5105 GB, free: 7.973 MB / 346.7 MB Notification: Performance of Templates: time 0.02429/0.6168, allocations: 8.472 MB / 0.5187 GB, free: 15.52 MB / 362.7 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.mat","../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches