Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.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.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",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.001176/0.001176, allocations: 108.7 kB / 16.51 MB, free: 6.707 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.001249/0.001249, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.427/1.427, allocations: 205.1 MB / 223.3 MB, free: 12.49 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1649/0.1649, allocations: 37.98 MB / 308.6 MB, free: 6.242 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.001394/0.001394, allocations: 71.41 kB / 374.7 MB, free: 4.004 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2531, allocations: 55.24 MB / 430 MB, free: 19.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.007156/0.2603, allocations: 7.813 MB / 437.8 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004401/0.2647, allocations: 2.082 MB / 439.9 MB, free: 9.812 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007871/0.2656, allocations: 51.69 kB / 439.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005286/0.2661, allocations: 131.1 kB / 440 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008554/0.267, allocations: 414.2 kB / 440.4 MB, free: 9.227 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005936/0.2676, allocations: 315.6 kB / 440.8 MB, free: 8.918 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001392/0.269, allocations: 2.003 MB / 442.8 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004107/0.2694, allocations: 340.2 kB / 443.1 MB, free: 6.578 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007223/0.2702, allocations: 0.498 MB / 443.6 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006798/0.2708, allocations: 0.6543 MB / 444.2 MB, free: 5.422 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001046/0.271, allocations: 56 kB / 444.3 MB, free: 5.367 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001491/0.2711, allocations: 59.94 kB / 444.4 MB, free: 5.309 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002785/0.2714, allocations: 371.1 kB / 444.7 MB, free: 4.945 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003527/0.2718, allocations: 422 kB / 445.1 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000688/0.2725, allocations: 1.145 MB / 446.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2725, allocations: 0 / 446.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2725, allocations: 0 / 446.3 MB, free: 3.383 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.2725, allocations: 0 / 446.3 MB, free: 3.383 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: 159 * Number of variables: 159 Notification: Performance of Generate backend data structure: time 0.002503/0.275, allocations: 1.298 MB / 447.6 MB, free: 2.02 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.2751, allocations: 16.03 kB / 447.6 MB, free: 2.004 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001356/0.2752, allocations: 118.7 kB / 447.7 MB, free: 1.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001664/0.2754, allocations: 99.89 kB / 447.8 MB, free: 1.781 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00106/0.2764, allocations: 0.6821 MB / 448.5 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003211/0.2768, allocations: 346.8 kB / 448.8 MB, free: 0.6719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001089/0.2769, allocations: 68 kB / 448.9 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002025/0.2789, allocations: 1.145 MB / 450 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.279, allocations: 3.938 kB / 450 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.857e-05/0.279, allocations: 35.98 kB / 450.1 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001118/0.2792, allocations: 37.28 kB / 450.1 MB, free: 15.34 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002496/0.2817, allocations: 1.172 MB / 451.3 MB, free: 14.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005204/0.2869, allocations: 3.5 MB / 454.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002341/0.2892, allocations: 0.9603 MB / 455.7 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001545/0.2908, allocations: 0.6902 MB / 456.4 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.055e-05/0.2909, allocations: 8.562 kB / 456.4 MB, free: 8.883 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001441/0.2923, allocations: 0.6811 MB / 457.1 MB, free: 8.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=59): time 2.063e-06/0.2923, allocations: 0 / 457.1 MB, free: 8.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=61): time 0.01766/0.31, allocations: 5.667 MB / 462.8 MB, free: 2.434 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.048e-05/0.3101, allocations: 89.66 kB / 462.9 MB, free: 2.328 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005264/0.3106, allocations: 465.9 kB / 463.3 MB, free: 1.863 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.224e-05/0.3107, allocations: 41.7 kB / 463.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.311, allocations: 328.2 kB / 463.7 MB, free: 1.488 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/0.3111, allocations: 205.2 kB / 463.9 MB, free: 1.285 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002259/0.3114, allocations: 130.2 kB / 464 MB, free: 1.152 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001519/0.3115, allocations: 370.8 kB / 464.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/0.3126, allocations: 0.5051 MB / 464.9 MB, free: 284 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001122/0.3137, allocations: 0.6336 MB / 465.5 MB, free: 15.6 MB / 350.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.006579/0.3203, allocations: 3.131 MB / 468.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3203, allocations: 0 / 468.6 MB, free: 12.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00709/0.3274, allocations: 2.494 MB / 471.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.803e-05/0.3275, allocations: 57.67 kB / 471.2 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3275, allocations: 4 kB / 471.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002353/0.3299, allocations: 1.078 MB / 472.3 MB, free: 8.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004878/0.3304, allocations: 107.8 kB / 472.4 MB, free: 8.617 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/0.3442, allocations: 6.297 MB / 478.7 MB, free: 2.191 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008333/0.3451, allocations: 91.89 kB / 478.8 MB, free: 2.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001492/0.3453, allocations: 43.97 kB / 478.8 MB, free: 2.059 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 system: ind.i[1] = ind.i_start[1]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.t0,$PRE.inverter.modulator.sigdel_t,inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[4],inverter.modulator.gates[3],inverter.modulator.gates[2],inverter.modulator.gates[1],$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0005859/0.3459, allocations: 279.5 kB / 479.1 MB, free: 1.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001464/0.346, allocations: 59.25 kB / 479.1 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007394/0.3534, allocations: 2.429 MB / 481.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.147e-05/0.3535, allocations: 4 kB / 481.6 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3535, allocations: 7.938 kB / 481.6 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-05/0.3535, allocations: 7.969 kB / 481.6 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008976/0.3625, allocations: 3.559 MB / 485.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.324e-06/0.3625, allocations: 4 kB / 485.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000381/0.3629, allocations: 84.02 kB / 485.2 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00246/0.3654, allocations: 1.094 MB / 486.3 MB, free: 10.43 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001086/0.3655, allocations: 15.98 kB / 486.3 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01422/0.3797, allocations: 6.26 MB / 492.6 MB, free: 4.012 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.892e-06/0.3798, allocations: 4 kB / 492.6 MB, free: 4.008 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009585/0.3894, allocations: 3.196 MB / 495.8 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004716/0.3899, allocations: 220.3 kB / 496 MB, free: 0.5352 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001867/0.3901, allocations: 31.98 kB / 496.1 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007854/0.3909, allocations: 99.86 kB / 496.2 MB, free: 416 kB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004654/0.3914, allocations: 164.3 kB / 496.3 MB, free: 252 kB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.527e-05/0.3915, allocations: 23.98 kB / 496.3 MB, free: 228 kB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0004735/0.392, allocations: 322.9 kB / 496.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.392, allocations: 0 / 496.7 MB, free: 15.91 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001185/0.3932, allocations: 227.9 kB / 496.9 MB, free: 15.69 MB / 382.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: 8 ($whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0,system.initime) * Number of discrete states: 6 (inverter.modulator.t0,inverter.modulator.sigdel_t,inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(5,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.009282/0.4024, allocations: 3.776 MB / 0.4889 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004198/0.4067, allocations: 1.715 MB / 0.4906 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.618e-06/0.4067, allocations: 0 / 0.4906 GB, free: 10.12 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002981/0.4097, allocations: 1.103 MB / 0.4917 GB, free: 9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009864/0.4107, allocations: 158.4 kB / 0.4918 GB, free: 8.848 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02143/0.4321, allocations: 10.21 MB / 0.5018 GB, free: 14.43 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000751/0.4329, allocations: 0.9968 MB / 0.5028 GB, free: 13.41 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004552/0.4334, allocations: 125.1 kB / 0.5029 GB, free: 13.28 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004099/0.4338, allocations: 231.4 kB / 0.5031 GB, free: 13.05 MB / 398.1 MB Notification: Performance of SimCode: time 1.302e-06/0.4338, allocations: 4 kB / 0.5031 GB, free: 13.05 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2122/0.646, allocations: 21.21 MB / 0.5238 GB, free: 88.53 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001649/0.6463, allocations: 246.8 kB / 0.5241 GB, free: 88.27 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.149/2.795, allocations: 4 kB / 0.5241 GB, free: 88.27 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)