Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.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.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad",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.001002/0.001002, allocations: 89.8 kB / 16.65 MB, free: 6.535 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.001065/0.001065, allocations: 175.2 kB / 17.56 MB, free: 6.18 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.396/1.396, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1804/0.1804, allocations: 38.06 MB / 310.1 MB, free: 5.902 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.0005394/0.0005395, allocations: 12.56 kB / 377.3 MB, free: 2.613 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.2686, allocations: 56.34 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.005704/0.2743, allocations: 7.089 MB / 440.7 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004251/0.2786, allocations: 2.786 MB / 443.5 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004989/0.2792, allocations: 39.75 kB / 443.5 MB, free: 8.688 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004455/0.2796, allocations: 147 kB / 443.7 MB, free: 8.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00109/0.2807, allocations: 0.5487 MB / 444.2 MB, free: 7.992 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008886/0.2816, allocations: 443.4 kB / 444.6 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001596/0.2832, allocations: 2.44 MB / 447.1 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001062/0.2843, allocations: 0.9516 MB / 448 MB, free: 4.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000739/0.285, allocations: 0.6227 MB / 448.7 MB, free: 3.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009321/0.286, allocations: 0.9193 MB / 449.6 MB, free: 2.57 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.2861, allocations: 68 kB / 449.6 MB, free: 2.504 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008955/0.287, allocations: 0.6084 MB / 450.3 MB, free: 1.895 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004002/0.2874, allocations: 0.5455 MB / 450.8 MB, free: 1.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004806/0.2879, allocations: 0.6005 MB / 451.4 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001606/0.2895, allocations: 1.912 MB / 453.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2896, allocations: 0 / 453.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2896, allocations: 4 kB / 453.3 MB, free: 14.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.698e-05/0.2896, allocations: 0 / 453.3 MB, free: 14.81 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.004218/0.2938, allocations: 1.702 MB / 455 MB, free: 13.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.972e-05/0.2939, allocations: 12.03 kB / 455 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002548/0.2941, allocations: 164.4 kB / 455.2 MB, free: 12.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007128/0.2949, allocations: 167.6 kB / 455.4 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.2969, allocations: 0.9361 MB / 456.3 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006537/0.2976, allocations: 0.5221 MB / 456.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002554/0.2978, allocations: 99.97 kB / 456.9 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004202/0.3021, allocations: 2.113 MB / 459 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.16e-05/0.3021, allocations: 3.906 kB / 459 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001373/0.3022, allocations: 39.94 kB / 459.1 MB, free: 8.816 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002253/0.3025, allocations: 93.92 kB / 459.2 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005127/0.3076, allocations: 2.416 MB / 461.6 MB, free: 6.309 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009555/0.3172, allocations: 5.765 MB / 467.3 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004806/0.322, allocations: 1.945 MB / 469.3 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002727/0.3248, allocations: 1.246 MB / 470.5 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.215e-05/0.3249, allocations: 24.89 kB / 470.5 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003005/0.3279, allocations: 1.485 MB / 472 MB, free: 11.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=123): time 2.805e-06/0.3279, allocations: 0 / 472 MB, free: 11.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.01453/0.3425, allocations: 6.126 MB / 478.2 MB, free: 5.496 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/0.3426, allocations: 102.1 kB / 478.3 MB, free: 5.375 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007172/0.3433, allocations: 0.4902 MB / 478.7 MB, free: 4.871 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001281/0.3435, allocations: 57.7 kB / 478.8 MB, free: 4.809 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003207/0.3438, allocations: 368.7 kB / 479.2 MB, free: 4.441 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000397/0.3442, allocations: 414 kB / 479.6 MB, free: 4.031 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.3444, allocations: 117.6 kB / 479.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.3446, allocations: 398.8 kB / 480.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002103/0.3467, allocations: 1.103 MB / 481.2 MB, free: 2.41 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002269/0.349, allocations: 1.25 MB / 482.4 MB, free: 1.121 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004135/0.3531, allocations: 2.188 MB / 484.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.3532, allocations: 0 / 484.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01167/0.3648, allocations: 4.411 MB / 489 MB, free: 10.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.043e-05/0.365, allocations: 61.72 kB / 489.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.365, allocations: 3.938 kB / 489.1 MB, free: 10.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006212/0.3712, allocations: 2.221 MB / 491.3 MB, free: 8.164 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009569/0.3722, allocations: 195.7 kB / 491.5 MB, free: 7.973 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02679/0.399, allocations: 11.65 MB / 0.4914 GB, free: 12.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001503/0.4005, allocations: 207.8 kB / 0.4916 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002785/0.4008, allocations: 71.94 kB / 0.4916 GB, free: 11.91 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 28 (inverter.modulator.t0[3],$PRE.inverter.modulator.t0[3],inverter.modulator.t0[2],$PRE.inverter.modulator.t0[2],inverter.modulator.t0[1],$PRE.inverter.modulator.t0[1],inverter.modulator.sigdel_t[3],$PRE.inverter.modulator.sigdel_t[3],inverter.modulator.sigdel_t[2],$PRE.inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[1],$PRE.inverter.modulator.sigdel_t[1],inverter.modulator.gates[6],$PRE.inverter.modulator.gates[6],inverter.modulator.gates[5],$PRE.inverter.modulator.gates[5],inverter.modulator.gates[4],$PRE.inverter.modulator.gates[4],inverter.modulator.gates[3],$PRE.inverter.modulator.gates[3],inverter.modulator.gates[2],$PRE.inverter.modulator.gates[2],inverter.modulator.gates[1],$PRE.inverter.modulator.gates[1],system.initime,$whenCondition1,$whenCondition2,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (106): * Single equations (assignments): 101 * Array equations: 3 * 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 {(6,21)} Notification: Performance of prepare postOptimizeDAE: time 0.001034/0.4019, allocations: 377.5 kB / 0.492 GB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004126/0.4023, allocations: 83 kB / 0.4921 GB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006387/0.4087, allocations: 2.56 MB / 0.4946 GB, free: 8.879 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.663e-05/0.4088, allocations: 28 kB / 0.4946 GB, free: 8.852 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.016e-05/0.4088, allocations: 8.062 kB / 0.4946 GB, free: 8.844 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.784e-05/0.4088, allocations: 7.969 kB / 0.4946 GB, free: 8.836 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00914/0.418, allocations: 4.293 MB / 0.4988 GB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.779e-06/0.418, allocations: 4 kB / 0.4988 GB, free: 4.457 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01192/0.4299, allocations: 2.861 MB / 0.5016 GB, free: 1.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.748e-05/0.43, allocations: 8 kB / 0.5016 GB, free: 1.586 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002446/0.4302, allocations: 31.97 kB / 0.5016 GB, free: 1.555 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.959e-06/0.4303, allocations: 4 kB / 0.5016 GB, free: 1.551 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.4303, allocations: 11.88 kB / 0.5017 GB, free: 1.539 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00891/0.4392, allocations: 4.158 MB / 0.5057 GB, free: 13.34 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000704/0.4399, allocations: 344 kB / 0.506 GB, free: 12.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002762/0.4402, allocations: 79.95 kB / 0.5061 GB, free: 12.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001463/0.4417, allocations: 243.7 kB / 0.5063 GB, free: 12.66 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004232/0.4421, allocations: 192.6 kB / 0.5065 GB, free: 12.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001112/0.4422, allocations: 43.97 kB / 0.5066 GB, free: 12.43 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000425/0.4427, allocations: 346.8 kB / 0.5069 GB, free: 12.09 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4427, allocations: 0 / 0.5069 GB, free: 12.09 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001286/0.444, allocations: 355.9 kB / 0.5072 GB, free: 11.75 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 9 (meterDC.pav,meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],pqLoad.psi[1],pqLoad.psi[2],pqLoad.psi[3],pqLoad.Z[1],pqLoad.Z[2]) * Number of discrete variables: 16 ($whenCondition3,$whenCondition2,$whenCondition1,system.initime,inverter.modulator.gates[1],inverter.modulator.gates[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.sigdel_t[1],inverter.modulator.sigdel_t[2],inverter.modulator.sigdel_t[3],inverter.modulator.t0[1],inverter.modulator.t0[2],inverter.modulator.t0[3]) * Number of discrete states: 12 (inverter.modulator.t0[3],inverter.modulator.sigdel_t[3],inverter.modulator.gates[5],inverter.modulator.gates[6],inverter.modulator.t0[2],inverter.modulator.sigdel_t[2],inverter.modulator.gates[3],inverter.modulator.gates[4],inverter.modulator.t0[1],inverter.modulator.sigdel_t[1],inverter.modulator.gates[1],inverter.modulator.gates[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 96 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 13 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009203/0.4532, allocations: 4.825 MB / 0.512 GB, free: 6.863 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006695/0.4599, allocations: 3.154 MB / 0.515 GB, free: 3.684 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.4599, allocations: 0 / 0.515 GB, free: 3.684 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006432/0.4663, allocations: 2.297 MB / 0.5173 GB, free: 1.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.4676, allocations: 174.7 kB / 0.5174 GB, free: 1.215 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2228/0.6904, allocations: 17.46 MB / 0.5345 GB, free: 83.46 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005773/0.691, allocations: 1.148 MB / 0.5356 GB, free: 82.29 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001005/0.6921, allocations: 318.7 kB / 0.5359 GB, free: 81.97 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000566/0.6926, allocations: 343.3 kB / 0.5363 GB, free: 81.64 MB / 398.1 MB Notification: Performance of SimCode: time 2.294e-06/0.6926, allocations: 0 / 0.5363 GB, free: 81.64 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03886/0.7315, allocations: 30.3 MB / 0.5658 GB, free: 51.37 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001623/0.7317, allocations: 228.9 kB / 0.5661 GB, free: 51.11 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.375/3.107, allocations: 0 / 0.5661 GB, free: 51.11 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_InverterToLoad.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.InverterToLoad.pipe 2>&1)