Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 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.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001192/0.001192, allocations: 108.6 kB / 17.69 MB, free: 5.445 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.001109/0.001109, allocations: 191 kB / 18.63 MB, free: 4.512 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.609/1.609, allocations: 205.1 MB / 224.5 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.2229/0.2229, allocations: 37.98 MB / 309.8 MB, free: 5.977 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002046/0.002046, allocations: 67.91 kB / 376.8 MB, free: 2.918 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2985/0.3005, allocations: 55.24 MB / 432 MB, free: 19.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005969/0.3065, allocations: 6.085 MB / 438.1 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.309, allocations: 1.45 MB / 439.6 MB, free: 11.94 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003308/0.3094, allocations: 27.81 kB / 439.6 MB, free: 11.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004948/0.3099, allocations: 134.9 kB / 439.7 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007379/0.3107, allocations: 401.9 kB / 440.1 MB, free: 11.38 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004278/0.3111, allocations: 191.7 kB / 440.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006862/0.3118, allocations: 0.915 MB / 441.2 MB, free: 10.28 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003015/0.3121, allocations: 282.6 kB / 441.5 MB, free: 10 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003584/0.3125, allocations: 406.3 kB / 441.9 MB, free: 9.602 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004852/0.313, allocations: 462.5 kB / 442.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.201e-05/0.3131, allocations: 48 kB / 442.4 MB, free: 9.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.626e-05/0.3131, allocations: 47.94 kB / 442.4 MB, free: 9.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.3133, allocations: 271.3 kB / 442.7 MB, free: 8.789 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002331/0.3136, allocations: 314.4 kB / 443 MB, free: 8.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004163/0.314, allocations: 0.6656 MB / 443.7 MB, free: 7.812 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/0.314, allocations: 4 kB / 443.7 MB, free: 7.809 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.314, allocations: 0 / 443.7 MB, free: 7.809 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.314, allocations: 0 / 443.7 MB, free: 7.809 MB / 318.1 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.001385/0.3154, allocations: 0.9602 MB / 444.6 MB, free: 6.797 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.3155, allocations: 15.89 kB / 444.7 MB, free: 6.781 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.586e-05/0.3156, allocations: 68.09 kB / 444.7 MB, free: 6.715 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008677/0.3164, allocations: 0.557 MB / 445.3 MB, free: 6.117 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.323e-05/0.3165, allocations: 41.12 kB / 445.3 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.335e-05/0.3166, allocations: 51.91 kB / 445.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007353/0.3173, allocations: 0.6288 MB / 446 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.47e-05/0.3173, allocations: 3.938 kB / 446 MB, free: 5.359 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.168e-05/0.3174, allocations: 20 kB / 446 MB, free: 5.34 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.3175, allocations: 32.97 kB / 446.1 MB, free: 5.309 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006363/0.3181, allocations: 0.5074 MB / 446.6 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.3206, allocations: 2.214 MB / 448.8 MB, free: 2.492 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006554/0.3212, allocations: 0.4932 MB / 449.3 MB, free: 1.98 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000534/0.3218, allocations: 341.6 kB / 449.6 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.105e-05/0.3218, allocations: 4 kB / 449.6 MB, free: 1.637 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.3219, allocations: 38.56 kB / 449.6 MB, free: 1.59 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.623e-06/0.3219, allocations: 4 kB / 449.6 MB, free: 1.586 MB / 318.1 MB Notification: Performance of matching and sorting (n=47): time 0.002759/0.3246, allocations: 1.754 MB / 451.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.216e-05/0.3247, allocations: 85.05 kB / 451.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004457/0.3252, allocations: 417.9 kB / 451.9 MB, free: 15.24 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.517e-05/0.3252, allocations: 37.64 kB / 451.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.3254, allocations: 300.4 kB / 452.2 MB, free: 14.9 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001503/0.3256, allocations: 161.6 kB / 452.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001333/0.3257, allocations: 94.25 kB / 452.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.3258, allocations: 362.7 kB / 452.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002799/0.3261, allocations: 193 kB / 453 MB, free: 14.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00034/0.3265, allocations: 303.7 kB / 453.3 MB, free: 13.74 MB / 334.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[1] = ind.i_start[1] (-ind.i_start[2] = ind.i_start[1]) Notification: Performance of analyzeInitialSystem (initialization): time 0.002539/0.329, allocations: 1.241 MB / 454.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.911e-05/0.3291, allocations: 4 kB / 454.6 MB, free: 12.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001168/0.3303, allocations: 0.7065 MB / 455.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.507e-05/0.3303, allocations: 8 kB / 455.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.3303, allocations: 7.984 kB / 455.3 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003578/0.3307, allocations: 144.6 kB / 455.4 MB, free: 11.56 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.3311, allocations: 103.9 kB / 455.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002774/0.3339, allocations: 2.614 MB / 458.1 MB, free: 8.695 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002649/0.3342, allocations: 28.03 kB / 458.2 MB, free: 8.668 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.512e-05/0.3342, allocations: 20.08 kB / 458.2 MB, free: 8.648 MB / 334.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[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.000281/0.3345, allocations: 229.6 kB / 458.4 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.906e-05/0.3346, allocations: 51.38 kB / 458.5 MB, free: 8.363 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001078/0.3357, allocations: 0.6581 MB / 459.1 MB, free: 7.695 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-06/0.3357, allocations: 8.094 kB / 459.1 MB, free: 7.688 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.135e-06/0.3357, allocations: 3.938 kB / 459.1 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.433e-06/0.3357, allocations: 3.938 kB / 459.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.3378, allocations: 1.369 MB / 460.5 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.3378, allocations: 0 / 460.5 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.3382, allocations: 75.89 kB / 460.6 MB, free: 6.145 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003655/0.3386, allocations: 156.9 kB / 460.7 MB, free: 5.988 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/0.3386, allocations: 12 kB / 460.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002651/0.3413, allocations: 2.618 MB / 463.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.3413, allocations: 0 / 463.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001308/0.3426, allocations: 0.9854 MB / 464.3 MB, free: 2.207 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.3427, allocations: 124.4 kB / 464.5 MB, free: 2.066 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.267e-05/0.3428, allocations: 16 kB / 464.5 MB, free: 2.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002359/0.343, allocations: 23.86 kB / 464.5 MB, free: 2.027 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.147e-05/0.3431, allocations: 43.94 kB / 464.5 MB, free: 1.984 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.807e-05/0.3431, allocations: 16 kB / 464.6 MB, free: 1.969 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.3434, allocations: 287.1 kB / 464.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3434, allocations: 0 / 464.8 MB, free: 1.691 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00056/0.344, allocations: 148 kB / 465 MB, free: 1.547 MB / 334.1 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.0001372/0.3441, allocations: 107.1 kB / 465.1 MB, free: 1.43 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.3452, allocations: 0.6637 MB / 465.8 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3452, allocations: 0 / 465.8 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006581/0.3459, allocations: 443.1 kB / 466.2 MB, free: 316 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006989/0.3466, allocations: 148.3 kB / 466.3 MB, free: 172 kB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001965/0.3486, allocations: 1.314 MB / 467.6 MB, free: 14.81 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005766/0.3492, allocations: 0.9253 MB / 468.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002691/0.3494, allocations: 108.7 kB / 468.7 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001158/0.3496, allocations: 39.38 kB / 468.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3496, allocations: 0 / 468.7 MB, free: 13.71 MB / 350.1 MB Notification: Performance of Templates: time 0.01173/0.3613, allocations: 6.759 MB / 475.5 MB, free: 6.973 MB / 350.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)