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.0009974/0.0009976, allocations: 101.1 kB / 16.5 MB, free: 6.203 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.001085/0.001085, allocations: 198.1 kB / 17.43 MB, free: 5.844 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.359/1.359, allocations: 205.1 MB / 223.3 MB, free: 12.46 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1751/0.1751, allocations: 37.99 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.001337/0.001337, allocations: 67.03 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.232/0.2334, allocations: 55.24 MB / 430 MB, free: 19.78 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.007207/0.2407, allocations: 7.533 MB / 437.5 MB, free: 12.21 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003983/0.2447, allocations: 2.833 MB / 440.3 MB, free: 9.367 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00063/0.2454, allocations: 47.69 kB / 440.4 MB, free: 9.32 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001098/0.2465, allocations: 386.3 kB / 440.8 MB, free: 8.941 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001009/0.2475, allocations: 0.5526 MB / 441.3 MB, free: 8.387 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008432/0.2484, allocations: 443.4 kB / 441.7 MB, free: 7.953 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001336/0.2497, allocations: 2.444 MB / 444.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007258/0.2504, allocations: 0.7171 MB / 444.9 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006039/0.2511, allocations: 0.6657 MB / 445.6 MB, free: 4.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008689/0.2519, allocations: 0.9545 MB / 446.5 MB, free: 3.148 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001683/0.2521, allocations: 84 kB / 446.6 MB, free: 3.066 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000771/0.2529, allocations: 0.6239 MB / 447.2 MB, free: 2.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003924/0.2533, allocations: 0.569 MB / 447.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004717/0.2538, allocations: 0.5989 MB / 448.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001252/0.255, allocations: 1.956 MB / 450.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2551, allocations: 0 / 450.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of FrontEnd: time 8.82e-07/0.2551, allocations: 0 / 450.3 MB, free: 15.3 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.293e-05/0.2551, allocations: 0 / 450.3 MB, free: 15.3 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.00421/0.2593, allocations: 1.908 MB / 452.3 MB, free: 13.32 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.2594, allocations: 12.03 kB / 452.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002187/0.2596, allocations: 160.4 kB / 452.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006675/0.2603, allocations: 167.6 kB / 452.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001951/0.2622, allocations: 0.936 MB / 453.5 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005567/0.2628, allocations: 0.5025 MB / 454 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000235/0.263, allocations: 95.98 kB / 454.1 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003608/0.2666, allocations: 2.015 MB / 456.1 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.365e-05/0.2667, allocations: 3.906 kB / 456.1 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001303/0.2668, allocations: 39.97 kB / 456.2 MB, free: 9.227 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000196/0.267, allocations: 89.95 kB / 456.3 MB, free: 9.141 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004453/0.2715, allocations: 2.244 MB / 458.5 MB, free: 6.895 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009012/0.2805, allocations: 5.675 MB / 464.2 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004413/0.285, allocations: 1.808 MB / 466 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002423/0.2874, allocations: 1.147 MB / 467.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001042/0.2876, allocations: 24.98 kB / 467.2 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002765/0.2903, allocations: 1.387 MB / 468.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=123): time 3.226e-06/0.2903, allocations: 0 / 468.6 MB, free: 12.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=124): time 0.01259/0.3029, allocations: 5.622 MB / 474.2 MB, free: 7.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.3031, allocations: 102 kB / 474.3 MB, free: 6.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005297/0.3036, allocations: 0.4902 MB / 474.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001153/0.3037, allocations: 57.7 kB / 474.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002506/0.304, allocations: 364.7 kB / 475.2 MB, free: 5.957 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003168/0.3043, allocations: 422 kB / 475.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003903/0.3047, allocations: 222.9 kB / 475.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.3049, allocations: 398.7 kB / 476.2 MB, free: 4.918 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001873/0.3067, allocations: 1.017 MB / 477.2 MB, free: 3.898 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001952/0.3087, allocations: 1.18 MB / 478.4 MB, free: 2.684 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003713/0.3124, allocations: 2.043 MB / 480.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.418e-06/0.3124, allocations: 0 / 480.4 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01017/0.3226, allocations: 3.895 MB / 484.3 MB, free: 12.68 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.029e-05/0.3227, allocations: 61.67 kB / 484.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.3227, allocations: 4 kB / 484.4 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005772/0.3285, allocations: 2.082 MB / 486.5 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008156/0.3293, allocations: 187.7 kB / 486.7 MB, free: 10.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02295/0.3523, allocations: 10.47 MB / 497.1 MB, free: 15.74 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001354/0.3537, allocations: 163.8 kB / 497.3 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002891/0.354, allocations: 75.88 kB / 497.4 MB, free: 15.5 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.000765/0.3548, allocations: 373.5 kB / 497.7 MB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000318/0.3551, allocations: 86.98 kB / 497.8 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005345/0.3604, allocations: 2.365 MB / 0.4885 GB, free: 12.67 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.663e-05/0.3605, allocations: 27.98 kB / 0.4885 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3605, allocations: 0 / 0.4885 GB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.219e-05/0.3605, allocations: 7.969 kB / 0.4885 GB, free: 12.63 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007962/0.3685, allocations: 4.098 MB / 0.4925 GB, free: 8.449 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.425e-06/0.3685, allocations: 4 kB / 0.4925 GB, free: 8.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009575/0.3781, allocations: 2.021 MB / 0.4945 GB, free: 6.422 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.581e-05/0.3781, allocations: 4 kB / 0.4945 GB, free: 6.418 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001849/0.3783, allocations: 47.94 kB / 0.4945 GB, free: 6.371 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-05/0.3783, allocations: 8 kB / 0.4945 GB, free: 6.363 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.557e-06/0.3784, allocations: 7.938 kB / 0.4945 GB, free: 6.355 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007646/0.386, allocations: 3.849 MB / 0.4983 GB, free: 2.461 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006547/0.3867, allocations: 340 kB / 0.4986 GB, free: 2.109 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002804/0.387, allocations: 83.94 kB / 0.4987 GB, free: 2.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001383/0.3884, allocations: 187.7 kB / 0.4989 GB, free: 1.844 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004182/0.3888, allocations: 196.6 kB / 0.4991 GB, free: 1.652 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001169/0.3889, allocations: 43.97 kB / 0.4991 GB, free: 1.609 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0004103/0.3894, allocations: 346.8 kB / 0.4994 GB, free: 1.27 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3894, allocations: 0 / 0.4994 GB, free: 1.27 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001148/0.3905, allocations: 355.9 kB / 0.4998 GB, free: 0.9219 MB / 382.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.00827/0.3988, allocations: 4.524 MB / 0.5042 GB, free: 12.34 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.006454/0.4053, allocations: 2.975 MB / 0.5071 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.315e-06/0.4053, allocations: 0 / 0.5071 GB, free: 9.344 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005919/0.4112, allocations: 1.934 MB / 0.509 GB, free: 7.41 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001282/0.4126, allocations: 174.2 kB / 0.5092 GB, free: 7.242 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2091/0.6217, allocations: 16.17 MB / 0.5249 GB, free: 87.18 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007312/0.6225, allocations: 1.144 MB / 0.5261 GB, free: 86.43 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009906/0.6235, allocations: 320 kB / 0.5264 GB, free: 86.42 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006485/0.6242, allocations: 342.4 kB / 0.5267 GB, free: 86.17 MB / 398.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6242, allocations: 3.844 kB / 0.5267 GB, free: 86.17 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07377/0.6979, allocations: 30.71 MB / 0.5567 GB, free: 59.21 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001808/0.6982, allocations: 228.4 kB / 0.5569 GB, free: 58.96 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.48/3.178, allocations: 4 kB / 0.5569 GB, free: 58.96 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)