Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009738/0.0009739, allocations: 171.6 kB / 16.07 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.293/1.293, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007349/0.0007349, allocations: 84.42 kB / 270.6 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1587/0.1587, allocations: 38.08 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003416/0.0003418, allocations: 15.98 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.2181, allocations: 56.33 MB / 479.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid): time 0.005833/0.224, allocations: 6.993 MB / 486.7 MB, free: 4.496 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.2269, allocations: 1.996 MB / 488.7 MB, free: 3.086 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007229/0.2277, allocations: 48.47 kB / 488.8 MB, free: 3.066 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005957/0.2283, allocations: 162.1 kB / 488.9 MB, free: 2.988 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001365/0.2297, allocations: 0.4925 MB / 489.4 MB, free: 2.715 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009339/0.2306, allocations: 329.6 kB / 489.7 MB, free: 2.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001896/0.2325, allocations: 1.621 MB / 491.4 MB, free: 1.977 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004614/0.233, allocations: 328.2 kB / 491.7 MB, free: 1.855 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001031/0.234, allocations: 0.4884 MB / 492.2 MB, free: 1.68 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001098/0.2352, allocations: 0.6145 MB / 492.8 MB, free: 1.492 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002207/0.2354, allocations: 43.34 kB / 492.8 MB, free: 1.492 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002993/0.2357, allocations: 42.69 kB / 492.9 MB, free: 1.492 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005021/0.2362, allocations: 358 kB / 493.2 MB, free: 1.398 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000729/0.2369, allocations: 423 kB / 493.6 MB, free: 1.16 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.2382, allocations: 0.8954 MB / 494.5 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.982e-06/0.2382, allocations: 5.219 kB / 494.5 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2382, allocations: 0 / 494.5 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.203e-05/0.2383, allocations: 0 / 494.5 MB, free: 0.9805 MB / 314.7 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.003428/0.2417, allocations: 1.169 MB / 495.7 MB, free: 260 kB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.2418, allocations: 10.19 kB / 495.7 MB, free: 260 kB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003387/0.2421, allocations: 124.7 kB / 495.8 MB, free: 168 kB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003024/0.2424, allocations: 91.44 kB / 495.9 MB, free: 128 kB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001545/0.244, allocations: 0.6966 MB / 496.6 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004785/0.2445, allocations: 359.4 kB / 497 MB, free: 15.42 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001743/0.2447, allocations: 65.11 kB / 497 MB, free: 15.4 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002712/0.2474, allocations: 1.201 MB / 498.2 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.798e-05/0.2474, allocations: 1.188 kB / 498.2 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.491e-05/0.2475, allocations: 21.94 kB / 498.3 MB, free: 14.79 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001277/0.2476, allocations: 42.94 kB / 498.3 MB, free: 14.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003014/0.2507, allocations: 1.283 MB / 499.6 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005716/0.2564, allocations: 3.558 MB / 0.4914 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002664/0.2591, allocations: 1.05 MB / 0.4924 GB, free: 11.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001725/0.2608, allocations: 0.7306 MB / 0.4931 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.564e-05/0.2609, allocations: 19.53 kB / 0.4931 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001671/0.2626, allocations: 0.746 MB / 0.4938 GB, free: 10.25 MB / 330.7 MB Notification: Performance of pre-optimization done (n=59): time 3.336e-06/0.2626, allocations: 0 / 0.4938 GB, free: 10.25 MB / 330.7 MB Notification: Performance of matching and sorting (n=61): time 0.02089/0.2835, allocations: 6.982 MB / 0.5007 GB, free: 5.035 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.729e-05/0.2836, allocations: 93.64 kB / 0.5007 GB, free: 4.926 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005288/0.2841, allocations: 465.9 kB / 0.5012 GB, free: 4.461 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.971e-05/0.2842, allocations: 37.7 kB / 0.5012 GB, free: 4.418 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002491/0.2845, allocations: 328.2 kB / 0.5015 GB, free: 4.09 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.2847, allocations: 197.2 kB / 0.5017 GB, free: 3.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.098e-05/0.2847, allocations: 12 kB / 0.5017 GB, free: 3.883 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001437/0.2849, allocations: 378.8 kB / 0.5021 GB, free: 3.504 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.286, allocations: 0.552 MB / 0.5026 GB, free: 2.953 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001175/0.2872, allocations: 0.6765 MB / 0.5033 GB, free: 2.234 MB / 330.7 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.007053/0.2943, allocations: 3.381 MB / 0.5066 GB, free: 14.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.188e-06/0.2943, allocations: 4 kB / 0.5066 GB, free: 14.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.008007/0.3023, allocations: 3.041 MB / 0.5096 GB, free: 11.71 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.261e-05/0.3024, allocations: 53.69 kB / 0.5096 GB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.788e-06/0.3024, allocations: 4 kB / 0.5096 GB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002452/0.3049, allocations: 1.19 MB / 0.5108 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004814/0.3054, allocations: 111.8 kB / 0.5109 GB, free: 10.34 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01562/0.321, allocations: 7.136 MB / 0.5179 GB, free: 3.074 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008737/0.3219, allocations: 111.9 kB / 0.518 GB, free: 2.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001471/0.3221, allocations: 43.97 kB / 0.518 GB, free: 2.922 MB / 346.7 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: 14 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$PRE.inverter.modulator.gates[4],$PRE.inverter.modulator.gates[3],$PRE.inverter.modulator.gates[2],$PRE.inverter.modulator.gates[1],$PRE.inverter.modulator.sigdel_t,$PRE.inverter.modulator.t0,$whenCondition1,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.sigdel_t,inverter.modulator.t0) * 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 (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: 0 * Non-linear torn systems: 1 {5 11} Notification: Performance of prepare postOptimizeDAE: time 0.0005246/0.3226, allocations: 279.5 kB / 0.5183 GB, free: 2.641 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001272/0.3228, allocations: 63.19 kB / 0.5183 GB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008494/0.3313, allocations: 3.007 MB / 0.5213 GB, free: 15.56 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-05/0.3313, allocations: 8 kB / 0.5213 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3313, allocations: 3.938 kB / 0.5213 GB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.387e-05/0.3313, allocations: 3.984 kB / 0.5213 GB, free: 15.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01018/0.3415, allocations: 4.145 MB / 0.5253 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.3416, allocations: 128 / 0.5253 GB, free: 11.31 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003919/0.342, allocations: 83.89 kB / 0.5254 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002508/0.3445, allocations: 1.198 MB / 0.5266 GB, free: 10.03 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001116/0.3446, allocations: 19.98 kB / 0.5266 GB, free: 10.01 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01569/0.3603, allocations: 7.1 MB / 0.5335 GB, free: 2.773 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.751e-05/0.3604, allocations: 7.938 kB / 0.5336 GB, free: 2.766 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01047/0.3709, allocations: 3.836 MB / 0.5373 GB, free: 14.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004568/0.3714, allocations: 220.3 kB / 0.5375 GB, free: 14.65 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002106/0.3716, allocations: 35.98 kB / 0.5375 GB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008349/0.3724, allocations: 123.9 kB / 0.5377 GB, free: 14.49 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004669/0.3729, allocations: 168.2 kB / 0.5378 GB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.801e-05/0.373, allocations: 19.98 kB / 0.5378 GB, free: 14.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000416/0.3734, allocations: 322.9 kB / 0.5381 GB, free: 14 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3734, allocations: 0 / 0.5381 GB, free: 14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009544/0.3744, allocations: 231.9 kB / 0.5384 GB, free: 13.77 MB / 378.7 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 (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: 0 * Non-linear torn systems: 1 {5 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.01048/0.3849, allocations: 4.413 MB / 0.5427 GB, free: 9.305 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.004867/0.3898, allocations: 1.938 MB / 0.5446 GB, free: 7.34 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/0.3898, allocations: 0 / 0.5446 GB, free: 7.34 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003426/0.3932, allocations: 1.279 MB / 0.5458 GB, free: 6.047 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.3944, allocations: 150.4 kB / 0.546 GB, free: 5.902 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0156/0.41, allocations: 7.265 MB / 0.5531 GB, free: 14.52 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007133/0.4108, allocations: 0.9892 MB / 0.554 GB, free: 13.51 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004121/0.4112, allocations: 239.4 kB / 0.5543 GB, free: 13.28 MB / 394.7 MB Notification: Performance of SimCode: time 3.346e-06/0.4112, allocations: 0 / 0.5543 GB, free: 13.28 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.451/4.862, allocations: 15.17 MB / 0.5691 GB, free: 14.08 MB / 410.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC1ph_DC_Inverters_InverterToGrid.fmu > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.InverterToGrid.pipe 2>&1)