Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009297/0.0009298, allocations: 92.94 kB / 16.65 MB, free: 6.59 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.001054/0.001054, allocations: 185.2 kB / 17.57 MB, free: 6.203 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.326/1.326, allocations: 205.4 MB / 223.7 MB, free: 13 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.167/0.167, allocations: 38.05 MB / 310.1 MB, free: 5.906 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.0005191/0.0005193, allocations: 12 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2679/0.2684, allocations: 56.33 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.005704/0.2742, allocations: 7.299 MB / 440.9 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003643/0.2779, allocations: 2.276 MB / 443.2 MB, free: 9.027 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000667/0.2786, allocations: 47.69 kB / 443.2 MB, free: 8.98 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005609/0.2791, allocations: 131.1 kB / 443.3 MB, free: 8.852 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009257/0.2801, allocations: 398.3 kB / 443.7 MB, free: 8.461 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000967/0.2811, allocations: 311.5 kB / 444 MB, free: 8.156 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001179/0.2823, allocations: 1.496 MB / 445.5 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008184/0.2831, allocations: 0.692 MB / 446.2 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004501/0.2835, allocations: 374.2 kB / 446.6 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00058/0.2841, allocations: 0.5685 MB / 447.2 MB, free: 4.988 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.32e-05/0.2842, allocations: 39.94 kB / 447.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004274/0.2846, allocations: 255.5 kB / 447.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002216/0.2849, allocations: 331.1 kB / 447.8 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002993/0.2852, allocations: 403.6 kB / 448.2 MB, free: 3.973 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007782/0.286, allocations: 0.9809 MB / 449.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.682e-06/0.286, allocations: 0 / 449.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.476e-06/0.286, allocations: 0 / 449.1 MB, free: 2.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.1e-05/0.286, allocations: 4 kB / 449.2 MB, free: 2.984 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: 188 * Number of variables: 188 Notification: Performance of Generate backend data structure: time 0.001822/0.2878, allocations: 0.9883 MB / 450.1 MB, free: 1.945 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.94e-05/0.2879, allocations: 12.03 kB / 450.2 MB, free: 1.934 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001163/0.288, allocations: 118.7 kB / 450.3 MB, free: 1.809 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006526/0.2887, allocations: 135.8 kB / 450.4 MB, free: 1.676 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007547/0.2894, allocations: 0.5767 MB / 451 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.733e-05/0.2895, allocations: 45.69 kB / 451 MB, free: 1.012 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001644/0.2897, allocations: 79.83 kB / 451.1 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001264/0.2909, allocations: 1.006 MB / 452.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.291, allocations: 3.984 kB / 452.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.526e-05/0.291, allocations: 28 kB / 452.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001992/0.2913, allocations: 69.95 kB / 452.2 MB, free: 15.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.2927, allocations: 0.9758 MB / 453.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004573/0.2973, allocations: 3.279 MB / 456.5 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00104/0.2984, allocations: 0.6799 MB / 457.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005624/0.2989, allocations: 423.4 kB / 457.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.738e-05/0.299, allocations: 16.84 kB / 457.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.157e-05/0.299, allocations: 47.12 kB / 457.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of pre-optimization done (n=73): time 2.144e-06/0.299, allocations: 0 / 457.6 MB, free: 10.22 MB / 334.1 MB Notification: Performance of matching and sorting (n=75): time 0.003615/0.3027, allocations: 2.431 MB / 460 MB, free: 7.703 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.184e-05/0.3027, allocations: 89.61 kB / 460.1 MB, free: 7.598 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004507/0.3032, allocations: 445.8 kB / 460.6 MB, free: 7.156 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.771e-05/0.3032, allocations: 37.7 kB / 460.6 MB, free: 7.113 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000237/0.3035, allocations: 355.6 kB / 461 MB, free: 6.758 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001766/0.3037, allocations: 264.2 kB / 461.2 MB, free: 6.496 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.411e-05/0.3038, allocations: 69.69 kB / 461.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3039, allocations: 382.7 kB / 461.7 MB, free: 6.039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004675/0.3044, allocations: 341.8 kB / 462 MB, free: 5.707 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005974/0.305, allocations: 0.5224 MB / 462.5 MB, free: 5.113 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[3] = ind.i_start[3] (0.0 = ind.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.004831/0.3099, allocations: 2.241 MB / 464.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.833e-06/0.3099, allocations: 4 kB / 464.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001614/0.3115, allocations: 1.102 MB / 465.9 MB, free: 1.645 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.3115, allocations: 4 kB / 465.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.3115, allocations: 8 kB / 465.9 MB, free: 1.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001527/0.3117, allocations: 40.77 kB / 465.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007061/0.3124, allocations: 187.7 kB / 466.1 MB, free: 1.406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001092/0.3135, allocations: 1.401 MB / 467.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.314, allocations: 35.97 kB / 467.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.063e-05/0.314, allocations: 32 kB / 467.6 MB, free: 15.8 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 (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.0003832/0.3144, allocations: 281.6 kB / 467.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.3145, allocations: 63.19 kB / 467.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.3159, allocations: 0.9661 MB / 468.9 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-05/0.3159, allocations: 16 kB / 468.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.576e-06/0.3159, allocations: 0 / 468.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.187e-06/0.316, allocations: 11.92 kB / 468.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002882/0.3188, allocations: 2.008 MB / 470.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.394e-06/0.3189, allocations: 4 kB / 470.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006282/0.3195, allocations: 151.9 kB / 471.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001107/0.3196, allocations: 41.33 kB / 471.1 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.696e-05/0.3197, allocations: 23.98 kB / 471.1 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009632/0.3206, allocations: 1.393 MB / 472.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.208e-06/0.3207, allocations: 4 kB / 472.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001778/0.3224, allocations: 1.529 MB / 474 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001213/0.3226, allocations: 140.4 kB / 474.2 MB, free: 8.754 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.732e-05/0.3227, allocations: 31.98 kB / 474.2 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.323, allocations: 27.97 kB / 474.2 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.991e-05/0.3231, allocations: 64.38 kB / 474.3 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.673e-05/0.3232, allocations: 27.98 kB / 474.3 MB, free: 8.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003417/0.3235, allocations: 299.1 kB / 474.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3235, allocations: 0 / 474.6 MB, free: 8.312 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006826/0.3242, allocations: 180 kB / 474.8 MB, free: 8.137 MB / 350.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.00222/0.3264, allocations: 2.132 MB / 476.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001453/0.3279, allocations: 0.9509 MB / 477.9 MB, free: 4.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.37e-06/0.3279, allocations: 4 kB / 477.9 MB, free: 4.938 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006529/0.3286, allocations: 0.521 MB / 478.4 MB, free: 4.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.3296, allocations: 143.5 kB / 478.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009394/0.339, allocations: 7.555 MB / 486.1 MB, free: 12.32 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007918/0.3399, allocations: 1.013 MB / 487.1 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006958/0.3406, allocations: 201.4 kB / 487.3 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004202/0.341, allocations: 279.3 kB / 487.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of SimCode: time 1.643e-06/0.341, allocations: 0 / 487.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02966/0.3707, allocations: 13.66 MB / 0.4895 GB, free: 13.18 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001989/0.3709, allocations: 226.9 kB / 0.4897 GB, free: 12.92 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/2.534, allocations: 0 / 0.4897 GB, free: 12.92 MB / 382.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid.pipe 2>&1)