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: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.0008545/0.0008545, allocations: 93.05 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.0009218/0.000922, allocations: 182.9 kB / 17.56 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.208/1.208, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1595/0.1595, allocations: 38.06 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.0004723/0.0004724, allocations: 16 kB / 377.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.184/0.1845, allocations: 56.33 MB / 433.6 MB, free: 18.65 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid): time 0.005191/0.1897, allocations: 6.902 MB / 440.5 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002548/0.1923, allocations: 1.809 MB / 442.3 MB, free: 9.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006231/0.1929, allocations: 51.62 kB / 442.4 MB, free: 9.848 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004396/0.1934, allocations: 127.2 kB / 442.5 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007356/0.1941, allocations: 354.5 kB / 442.8 MB, free: 9.375 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004121/0.1946, allocations: 171.8 kB / 443 MB, free: 9.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001002/0.1956, allocations: 1.383 MB / 444.4 MB, free: 7.82 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002753/0.1959, allocations: 233.4 kB / 444.6 MB, free: 7.59 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004908/0.1964, allocations: 330.4 kB / 444.9 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000577/0.197, allocations: 470.4 kB / 445.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.138e-05/0.197, allocations: 24 kB / 445.4 MB, free: 6.781 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.1972, allocations: 28 kB / 445.4 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001759/0.1973, allocations: 239.3 kB / 445.7 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002438/0.1976, allocations: 312.1 kB / 446 MB, free: 6.207 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00038/0.198, allocations: 0.6304 MB / 446.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.198, allocations: 0 / 446.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.198, allocations: 0 / 446.6 MB, free: 5.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.224e-05/0.198, allocations: 0 / 446.6 MB, free: 5.574 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.001213/0.1992, allocations: 0.8513 MB / 447.5 MB, free: 4.672 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.1993, allocations: 8.031 kB / 447.5 MB, free: 4.664 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.41e-05/0.1994, allocations: 94.64 kB / 447.6 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.339e-05/0.1995, allocations: 76.09 kB / 447.6 MB, free: 4.488 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006443/0.2001, allocations: 0.518 MB / 448.2 MB, free: 3.93 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.12e-05/0.2002, allocations: 40.94 kB / 448.2 MB, free: 3.891 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.056e-05/0.2002, allocations: 55.98 kB / 448.2 MB, free: 3.836 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006999/0.2009, allocations: 0.6171 MB / 448.9 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.201, allocations: 7.922 kB / 448.9 MB, free: 3.172 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.072e-05/0.201, allocations: 24 kB / 448.9 MB, free: 3.148 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.824e-05/0.2011, allocations: 28.98 kB / 448.9 MB, free: 3.121 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006159/0.2017, allocations: 0.5113 MB / 449.4 MB, free: 2.609 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002177/0.2039, allocations: 2.23 MB / 451.7 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006972/0.2046, allocations: 0.5047 MB / 452.2 MB, free: 15.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005506/0.2052, allocations: 341.6 kB / 452.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.879e-05/0.2052, allocations: 4 kB / 452.5 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.2053, allocations: 34.56 kB / 452.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 3.176e-06/0.2053, allocations: 4 kB / 452.5 MB, free: 15.37 MB / 334.1 MB Notification: Performance of matching and sorting (n=47): time 0.002894/0.2082, allocations: 1.754 MB / 454.3 MB, free: 13.54 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.2082, allocations: 81.23 kB / 454.4 MB, free: 13.44 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000355/0.2086, allocations: 425.8 kB / 454.8 MB, free: 13.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.086e-05/0.2086, allocations: 33.7 kB / 454.8 MB, free: 12.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001563/0.2088, allocations: 300.4 kB / 455.1 MB, free: 12.68 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.2089, allocations: 165.6 kB / 455.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.084e-05/0.209, allocations: 49.69 kB / 455.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.2091, allocations: 358.8 kB / 455.7 MB, free: 12.1 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002536/0.2093, allocations: 185 kB / 455.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003198/0.2097, allocations: 307.7 kB / 456.2 MB, free: 11.57 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.002358/0.212, allocations: 1.261 MB / 457.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.212, allocations: 0 / 457.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0009991/0.213, allocations: 0.7066 MB / 458.1 MB, free: 9.531 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.2131, allocations: 8 kB / 458.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/0.2131, allocations: 4 kB / 458.1 MB, free: 9.52 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003445/0.2134, allocations: 145.1 kB / 458.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004043/0.2138, allocations: 107.8 kB / 458.4 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/0.2162, allocations: 2.369 MB / 460.8 MB, free: 6.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.2164, allocations: 31.89 kB / 460.8 MB, free: 6.734 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.373e-05/0.2165, allocations: 20 kB / 460.8 MB, free: 6.715 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 sytem: 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.0002236/0.2167, allocations: 229.6 kB / 461 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.058e-05/0.2168, allocations: 47.44 kB / 461.1 MB, free: 6.434 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009963/0.2178, allocations: 0.6581 MB / 461.7 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.2178, allocations: 4 kB / 461.7 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2178, allocations: 8.094 kB / 461.7 MB, free: 5.754 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.2178, allocations: 7.969 kB / 461.8 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001806/0.2196, allocations: 1.381 MB / 463.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2196, allocations: 0 / 463.1 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003242/0.22, allocations: 75.89 kB / 463.2 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003537/0.2203, allocations: 148.3 kB / 463.4 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.083e-05/0.2204, allocations: 15.98 kB / 463.4 MB, free: 4.039 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002237/0.2226, allocations: 2.365 MB / 465.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2226, allocations: 4 kB / 465.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00123/0.2239, allocations: 0.9853 MB / 466.7 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.239e-05/0.224, allocations: 124.5 kB / 466.8 MB, free: 384 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.631e-05/0.224, allocations: 12 kB / 466.9 MB, free: 372 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002278/0.2243, allocations: 19.98 kB / 466.9 MB, free: 352 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.493e-05/0.2243, allocations: 39.89 kB / 466.9 MB, free: 312 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.607e-05/0.2244, allocations: 19.98 kB / 466.9 MB, free: 292 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002552/0.2246, allocations: 287.1 kB / 467.2 MB, free: 4 kB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2246, allocations: 0 / 467.2 MB, free: 4 kB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005282/0.2252, allocations: 148.1 kB / 467.4 MB, free: 15.86 MB / 350.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.001439/0.2266, allocations: 1.545 MB / 468.9 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009669/0.2276, allocations: 0.6568 MB / 469.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.33e-06/0.2276, allocations: 0 / 469.6 MB, free: 13.6 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005856/0.2282, allocations: 438.2 kB / 470 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007604/0.229, allocations: 130.7 kB / 470.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006023/0.235, allocations: 5.482 MB / 475.6 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004732/0.2355, allocations: 0.9292 MB / 476.5 MB, free: 6.375 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003051/0.2358, allocations: 104.7 kB / 476.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002367/0.236, allocations: 207.3 kB / 476.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2361, allocations: 0 / 476.8 MB, free: 6.07 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.704/1.94, allocations: 11.16 MB / 488 MB, free: 10.95 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/1.94, allocations: 230.7 kB / 488.2 MB, free: 10.69 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.96/3.9, allocations: 4 kB / 488.2 MB, free: 10.68 MB / 366.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterAvToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterAvToGrid.pipe 2>&1)