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.001304/0.001304, allocations: 85.22 kB / 16.31 MB, free: 5.641 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.001599/0.001599, allocations: 177.3 kB / 17.2 MB, free: 5.562 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.681/1.681, allocations: 205.4 MB / 223.4 MB, free: 5.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3095/0.3095, allocations: 38.06 MB / 309.7 MB, free: 8.844 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.0005111/0.0005113, allocations: 18.19 kB / 376.6 MB, free: 15.02 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1319/0.1324, allocations: 56.33 MB / 433 MB, free: 6.59 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterAvToGrid): time 0.008589/0.1411, allocations: 6.887 MB / 439.8 MB, free: 15.68 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004498/0.1456, allocations: 2.191 MB / 442 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.1467, allocations: 55.62 kB / 442.1 MB, free: 13.42 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008283/0.1476, allocations: 166.7 kB / 442.2 MB, free: 13.26 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001733/0.1493, allocations: 465.6 kB / 442.7 MB, free: 12.8 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001513/0.1509, allocations: 363.3 kB / 443.1 MB, free: 12.45 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001733/0.1526, allocations: 1.2 MB / 444.3 MB, free: 11.24 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.154, allocations: 0.6406 MB / 444.9 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007782/0.1548, allocations: 378.3 kB / 445.3 MB, free: 10.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001004/0.1558, allocations: 0.5531 MB / 445.8 MB, free: 9.641 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001536/0.1559, allocations: 36 kB / 445.9 MB, free: 9.605 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005709/0.1565, allocations: 199.6 kB / 446.1 MB, free: 9.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003907/0.1569, allocations: 339.1 kB / 446.4 MB, free: 9.078 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003172/0.1572, allocations: 157.3 kB / 446.5 MB, free: 8.918 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009257/0.1582, allocations: 0.7637 MB / 447.3 MB, free: 8.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.1582, allocations: 0 / 447.3 MB, free: 8.152 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1582, allocations: 0 / 447.3 MB, free: 8.152 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.924e-05/0.1582, allocations: 4 kB / 447.3 MB, free: 8.148 MB / 382.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.002431/0.1607, allocations: 0.9921 MB / 448.3 MB, free: 7.102 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.1607, allocations: 12.03 kB / 448.3 MB, free: 7.09 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002713/0.161, allocations: 118.6 kB / 448.4 MB, free: 6.965 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008653/0.1619, allocations: 126.9 kB / 448.5 MB, free: 6.84 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001228/0.1631, allocations: 0.5601 MB / 449.1 MB, free: 6.238 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.783e-05/0.1632, allocations: 53.3 kB / 449.2 MB, free: 6.188 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001937/0.1634, allocations: 67.95 kB / 449.2 MB, free: 6.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.165, allocations: 1.006 MB / 450.2 MB, free: 5.078 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.702e-05/0.165, allocations: 7.875 kB / 450.2 MB, free: 5.07 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.561e-05/0.1651, allocations: 31.97 kB / 450.3 MB, free: 5.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001871/0.1653, allocations: 73.95 kB / 450.3 MB, free: 4.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001645/0.167, allocations: 0.968 MB / 451.3 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005495/0.1725, allocations: 3.28 MB / 454.6 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2436/0.4161, allocations: 0.6828 MB / 455.3 MB, free: 51.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007619/0.4169, allocations: 423.8 kB / 455.7 MB, free: 51.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.059e-05/0.417, allocations: 11.94 kB / 455.7 MB, free: 51.39 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.051e-05/0.417, allocations: 46.12 kB / 455.7 MB, free: 51.35 MB / 382.1 MB Notification: Performance of pre-optimization done (n=73): time 4.148e-06/0.4171, allocations: 3.656 kB / 455.7 MB, free: 51.35 MB / 382.1 MB Notification: Performance of matching and sorting (n=75): time 0.003972/0.421, allocations: 2.422 MB / 458.2 MB, free: 50.75 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/0.4211, allocations: 84.92 kB / 458.3 MB, free: 50.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004791/0.4216, allocations: 437.9 kB / 458.7 MB, free: 50.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.768e-05/0.4217, allocations: 44.14 kB / 458.7 MB, free: 50.51 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002093/0.4219, allocations: 356.3 kB / 459.1 MB, free: 50.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001681/0.4221, allocations: 261.1 kB / 459.3 MB, free: 50.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.83e-05/0.4221, allocations: 16.34 kB / 459.3 MB, free: 50.14 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001203/0.4222, allocations: 370.2 kB / 459.7 MB, free: 49.83 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000481/0.4227, allocations: 338.6 kB / 460 MB, free: 49.83 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/0.4233, allocations: 0.5098 MB / 460.5 MB, free: 49.63 MB / 382.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.003416/0.4267, allocations: 1.411 MB / 462 MB, free: 49.51 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.4267, allocations: 3.188 kB / 462 MB, free: 49.51 MB / 382.1 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001592/0.4283, allocations: 1.085 MB / 463 MB, free: 49.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.4284, allocations: 6.594 kB / 463.1 MB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.176e-05/0.4284, allocations: 10.25 kB / 463.1 MB, free: 49.31 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001458/0.4285, allocations: 37.12 kB / 463.1 MB, free: 49.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006681/0.4292, allocations: 191.7 kB / 463.3 MB, free: 49.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009778/0.4302, allocations: 1.399 MB / 464.7 MB, free: 48.03 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004288/0.4306, allocations: 34.39 kB / 464.7 MB, free: 48.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.313e-05/0.4307, allocations: 33.83 kB / 464.7 MB, free: 48.03 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003908/0.4311, allocations: 282.2 kB / 465 MB, free: 47.9 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.4312, allocations: 61.89 kB / 465.1 MB, free: 47.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001312/0.4325, allocations: 0.972 MB / 466.1 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-05/0.4326, allocations: 14.97 kB / 466.1 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.4326, allocations: 0 / 466.1 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4326, allocations: 3.328 kB / 466.1 MB, free: 47.52 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002805/0.4354, allocations: 2.003 MB / 468.1 MB, free: 46.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.417e-06/0.4354, allocations: 9.625 kB / 468.1 MB, free: 46.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005791/0.436, allocations: 144.7 kB / 468.2 MB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001053/0.4361, allocations: 37.92 kB / 468.3 MB, free: 46.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.734e-05/0.4362, allocations: 28.73 kB / 468.3 MB, free: 46.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008488/0.437, allocations: 1.394 MB / 469.7 MB, free: 45.11 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.4371, allocations: 7.781 kB / 469.7 MB, free: 45.11 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001689/0.4388, allocations: 1.519 MB / 471.2 MB, free: 44.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00012/0.4389, allocations: 134.1 kB / 471.3 MB, free: 44.12 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.951e-05/0.439, allocations: 24.89 kB / 471.4 MB, free: 44.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003099/0.4393, allocations: 34.78 kB / 471.4 MB, free: 44.1 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.751e-05/0.4394, allocations: 59.53 kB / 471.5 MB, free: 44.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.556e-05/0.4394, allocations: 27.66 kB / 471.5 MB, free: 44.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002795/0.4397, allocations: 295.8 kB / 471.8 MB, free: 43.93 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4397, allocations: 0 / 471.8 MB, free: 43.93 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000708/0.4404, allocations: 185.6 kB / 472 MB, free: 43.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001995/0.4424, allocations: 2.092 MB / 474.1 MB, free: 42.52 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001334/0.4438, allocations: 0.9426 MB / 475 MB, free: 42.14 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.4438, allocations: 0 / 475 MB, free: 42.14 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005491/0.4444, allocations: 0.5231 MB / 475.5 MB, free: 41.89 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007849/0.4452, allocations: 138.5 kB / 475.7 MB, free: 41.85 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006371/0.4515, allocations: 5.144 MB / 480.8 MB, free: 39.09 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004648/0.452, allocations: 1.014 MB / 481.8 MB, free: 38.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005759/0.4526, allocations: 199.4 kB / 482 MB, free: 38.33 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003356/0.453, allocations: 277 kB / 482.3 MB, free: 38.13 MB / 382.1 MB Notification: Performance of SimCode: time 1.372e-06/0.453, allocations: 0 / 482.3 MB, free: 38.13 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0351/0.4881, allocations: 13.7 MB / 496 MB, free: 37.12 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002525/0.4884, allocations: 208.4 kB / 496.2 MB, free: 36.88 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.665, allocations: 4 kB / 496.2 MB, free: 36.88 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/linux/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) Environment - environmentSimulation: