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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001102/0.001102, allocations: 107 kB / 16.62 MB, free: 6.812 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.001126/0.001126, allocations: 189.8 kB / 17.55 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.288/1.288, allocations: 222.9 MB / 241.2 MB, free: 15.48 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1736/0.1736, allocations: 38.03 MB / 329.4 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 66.47 kB / 398.4 MB, free: 34.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08746/0.08873, allocations: 58.05 MB / 456.4 MB, free: 8.316 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.InverterToLoad): time 0.00789/0.09664, allocations: 7.525 MB / 464 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004514/0.1012, allocations: 2.75 MB / 466.7 MB, free: 14 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009891/0.1022, allocations: 47.69 kB / 466.8 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001328/0.1036, allocations: 401.5 kB / 467.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001457/0.1051, allocations: 0.5448 MB / 467.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001092/0.1062, allocations: 451.4 kB / 468.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002631/0.1088, allocations: 1.961 MB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001613/0.1104, allocations: 0.8844 MB / 471 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001357/0.1118, allocations: 0.7789 MB / 471.8 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00188/0.1137, allocations: 1.013 MB / 472.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003915/0.1141, allocations: 160 kB / 472.9 MB, free: 7.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001254/0.1154, allocations: 0.6826 MB / 473.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009106/0.1163, allocations: 0.6548 MB / 474.3 MB, free: 6.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001076/0.1174, allocations: 0.6809 MB / 475 MB, free: 5.727 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002168/0.1196, allocations: 2.026 MB / 477 MB, free: 3.695 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1196, allocations: 0 / 477 MB, free: 3.695 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.1196, allocations: 0 / 477 MB, free: 3.695 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.897e-05/0.1197, allocations: 0 / 477 MB, free: 3.695 MB / 350.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.005385/0.1251, allocations: 1.904 MB / 478.9 MB, free: 1.711 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.1251, allocations: 15.89 kB / 478.9 MB, free: 1.695 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003016/0.1254, allocations: 164.4 kB / 479.1 MB, free: 1.527 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007974/0.1262, allocations: 163.6 kB / 479.2 MB, free: 1.367 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002071/0.1283, allocations: 0.9283 MB / 480.2 MB, free: 408 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000602/0.1289, allocations: 0.5103 MB / 480.7 MB, free: 15.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002651/0.1292, allocations: 95.91 kB / 480.8 MB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003861/0.1331, allocations: 2.011 MB / 482.8 MB, free: 13.67 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.895e-05/0.1331, allocations: 7.922 kB / 482.8 MB, free: 13.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001328/0.1333, allocations: 40 kB / 482.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002015/0.1335, allocations: 89.94 kB / 482.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004555/0.138, allocations: 2.236 MB / 485.1 MB, free: 11.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00852/0.1466, allocations: 5.687 MB / 490.8 MB, free: 5.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004252/0.1508, allocations: 1.785 MB / 492.6 MB, free: 3.676 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002333/0.1532, allocations: 1.16 MB / 493.8 MB, free: 2.512 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.204e-05/0.1533, allocations: 13 kB / 493.8 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002775/0.1561, allocations: 1.387 MB / 495.2 MB, free: 1.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=123): time 4.088e-06/0.1561, allocations: 0 / 495.2 MB, free: 1.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=124): time 0.01338/0.1695, allocations: 5.618 MB / 0.489 GB, free: 11.42 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.72e-05/0.1696, allocations: 106.1 kB / 0.4892 GB, free: 11.3 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005777/0.1702, allocations: 0.4901 MB / 0.4896 GB, free: 10.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.00017/0.1703, allocations: 61.64 kB / 0.4897 GB, free: 10.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002966/0.1707, allocations: 360.6 kB / 0.49 GB, free: 10.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004166/0.1711, allocations: 414.1 kB / 0.4904 GB, free: 9.961 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004402/0.1715, allocations: 226.8 kB / 0.4906 GB, free: 9.73 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000175/0.1717, allocations: 402.8 kB / 0.491 GB, free: 9.328 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00191/0.1736, allocations: 1.017 MB / 0.492 GB, free: 8.312 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001954/0.1756, allocations: 1.184 MB / 0.4932 GB, free: 7.086 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003646/0.1792, allocations: 2.043 MB / 0.4952 GB, free: 5 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.069e-06/0.1793, allocations: 4 kB / 0.4952 GB, free: 4.996 MB / 382.1 MB Notification: Performance of matching and sorting (n=161) (initialization): time 0.01026/0.1895, allocations: 3.895 MB / 0.499 GB, free: 1.086 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.427e-05/0.1896, allocations: 64.02 kB / 0.499 GB, free: 1.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.342e-05/0.1896, allocations: 4 kB / 0.499 GB, free: 1.016 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.151/0.3407, allocations: 2.067 MB / 0.5011 GB, free: 56.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008592/0.3416, allocations: 190.5 kB / 0.5012 GB, free: 56.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02685/0.3684, allocations: 11.31 MB / 0.5123 GB, free: 53.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00129/0.3697, allocations: 168.5 kB / 0.5124 GB, free: 53.52 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002477/0.37, allocations: 77.61 kB / 0.5125 GB, free: 53.51 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.0006567/0.3707, allocations: 378.9 kB / 0.5129 GB, free: 53.29 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002515/0.3709, allocations: 82.41 kB / 0.513 GB, free: 53.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004867/0.3758, allocations: 2.355 MB / 0.5153 GB, free: 52.55 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.567e-05/0.3759, allocations: 30.28 kB / 0.5153 GB, free: 52.54 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.3759, allocations: 1.25 kB / 0.5153 GB, free: 52.54 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.3759, allocations: 6.375 kB / 0.5153 GB, free: 52.54 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006824/0.3827, allocations: 4.106 MB / 0.5193 GB, free: 50.32 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.364e-06/0.3827, allocations: 2.531 kB / 0.5193 GB, free: 50.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009463/0.3922, allocations: 2.024 MB / 0.5213 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.596e-05/0.3923, allocations: 9.969 kB / 0.5213 GB, free: 49.55 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000187/0.3924, allocations: 36.44 kB / 0.5213 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.674e-06/0.3925, allocations: 7.906 kB / 0.5213 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3925, allocations: 0 / 0.5213 GB, free: 49.53 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00676/0.3992, allocations: 3.863 MB / 0.5251 GB, free: 46.81 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005373/0.3998, allocations: 343.2 kB / 0.5254 GB, free: 46.48 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002266/0.4, allocations: 87.89 kB / 0.5255 GB, free: 46.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00125/0.4013, allocations: 187.7 kB / 0.5257 GB, free: 46.21 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003785/0.4017, allocations: 192.6 kB / 0.5259 GB, free: 46.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001062/0.4018, allocations: 41.41 kB / 0.5259 GB, free: 45.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003331/0.4021, allocations: 346.8 kB / 0.5263 GB, free: 45.64 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4022, allocations: 4 kB / 0.5263 GB, free: 45.64 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000992/0.4031, allocations: 358.6 kB / 0.5266 GB, free: 45.3 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.006937/0.4101, allocations: 4.521 MB / 0.531 GB, free: 40.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006546/0.4167, allocations: 3.768 MB / 0.5347 GB, free: 36.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.021e-06/0.4167, allocations: 0 / 0.5347 GB, free: 36.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004827/0.4215, allocations: 1.931 MB / 0.5366 GB, free: 35.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009223/0.4225, allocations: 177.8 kB / 0.5368 GB, free: 34.86 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02681/0.4493, allocations: 16.2 MB / 0.5526 GB, free: 18.47 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004881/0.4498, allocations: 1.144 MB / 0.5537 GB, free: 17.3 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009035/0.4507, allocations: 318.7 kB / 0.554 GB, free: 16.99 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005427/0.4513, allocations: 347.3 kB / 0.5543 GB, free: 16.65 MB / 382.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4513, allocations: 0 / 0.5543 GB, free: 16.65 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04753/0.4988, allocations: 31.77 MB / 0.5853 GB, free: 1.121 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002305/0.4991, allocations: 235 kB / 0.5856 GB, free: 0.8594 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.518/3.017, allocations: 0 / 0.5856 GB, free: 0.8594 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)