Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.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.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_Rectifier",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.001116/0.001116, allocations: 108.7 kB / 16.92 MB, free: 6.145 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.001132/0.001132, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.325/1.325, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.181/0.181, allocations: 38.04 MB / 329.7 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00137/0.001371, allocations: 66.72 kB / 398.9 MB, free: 33.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0918/0.09319, allocations: 58.06 MB / 457 MB, free: 7.953 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.008458/0.1017, allocations: 6.675 MB / 463.6 MB, free: 1.242 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003554/0.1053, allocations: 2.126 MB / 465.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004264/0.1057, allocations: 23.88 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001403/0.1072, allocations: 0.5073 MB / 466.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001288/0.1085, allocations: 0.5639 MB / 466.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008245/0.1093, allocations: 351.3 kB / 467.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001339/0.1107, allocations: 1.294 MB / 468.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009584/0.1116, allocations: 0.7402 MB / 469.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008386/0.1125, allocations: 0.5333 MB / 469.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.1136, allocations: 0.7362 MB / 470.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002352/0.1138, allocations: 108 kB / 470.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001112/0.1149, allocations: 0.6396 MB / 471.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000494/0.1154, allocations: 486.8 kB / 471.7 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007435/0.1162, allocations: 0.5251 MB / 472.3 MB, free: 8.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001596/0.1178, allocations: 1.511 MB / 473.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1178, allocations: 3.984 kB / 473.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1178, allocations: 0 / 473.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.827e-05/0.1179, allocations: 0 / 473.8 MB, free: 7.074 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: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.003226/0.1211, allocations: 1.36 MB / 475.1 MB, free: 5.664 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/0.1212, allocations: 15.89 kB / 475.1 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002009/0.1214, allocations: 151.8 kB / 475.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007391/0.1221, allocations: 143.7 kB / 475.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.1234, allocations: 0.6647 MB / 476.1 MB, free: 4.645 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002367/0.1237, allocations: 175.4 kB / 476.3 MB, free: 4.457 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002058/0.1239, allocations: 79.98 kB / 476.3 MB, free: 4.379 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002472/0.1264, allocations: 1.41 MB / 477.8 MB, free: 2.926 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.36e-05/0.1264, allocations: 3.984 kB / 477.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.1265, allocations: 31.98 kB / 477.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002299/0.1268, allocations: 85.95 kB / 477.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002913/0.1297, allocations: 1.515 MB / 479.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007339/0.1371, allocations: 4.439 MB / 483.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002322/0.1394, allocations: 1.188 MB / 485 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.1408, allocations: 0.7778 MB / 485.8 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.092e-05/0.1409, allocations: 16.64 kB / 485.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.183e-05/0.141, allocations: 47.14 kB / 485.9 MB, free: 10.67 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 3.617e-06/0.141, allocations: 0 / 485.9 MB, free: 10.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=102): time 0.007125/0.1481, allocations: 3.854 MB / 489.7 MB, free: 6.723 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.802e-05/0.1482, allocations: 86.11 kB / 489.8 MB, free: 6.621 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004452/0.1487, allocations: 401.9 kB / 490.2 MB, free: 6.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.185e-05/0.1488, allocations: 37.7 kB / 490.2 MB, free: 6.176 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002156/0.149, allocations: 348.3 kB / 490.6 MB, free: 5.828 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.1493, allocations: 354.8 kB / 490.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002683/0.1495, allocations: 158.7 kB / 491.1 MB, free: 5.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1497, allocations: 378.8 kB / 491.4 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001049/0.1508, allocations: 0.5914 MB / 492 MB, free: 4.344 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001166/0.1519, allocations: 0.7425 MB / 492.8 MB, free: 3.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002257/0.1542, allocations: 1.387 MB / 494.2 MB, free: 2.121 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.1542, allocations: 4 kB / 494.2 MB, free: 2.117 MB / 366.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002758/0.157, allocations: 1.603 MB / 495.8 MB, free: 500 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.157, allocations: 11.92 kB / 495.8 MB, free: 488 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.105e-05/0.1571, allocations: 4 kB / 495.8 MB, free: 484 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001485/0.1572, allocations: 37.03 kB / 495.8 MB, free: 444 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002591/0.1598, allocations: 0.4993 MB / 496.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006731/0.1666, allocations: 6.694 MB / 0.4912 GB, free: 8.684 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000816/0.1674, allocations: 79.89 kB / 0.4913 GB, free: 8.605 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001585/0.1676, allocations: 32 kB / 0.4913 GB, free: 8.574 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (104): * Single equations (assignments): 97 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000539/0.1681, allocations: 317.5 kB / 0.4916 GB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002983/0.1684, allocations: 67.09 kB / 0.4917 GB, free: 8.188 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003022/0.1715, allocations: 1.596 MB / 0.4933 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.334e-05/0.1715, allocations: 24 kB / 0.4933 GB, free: 6.539 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.794e-06/0.1715, allocations: 4 kB / 0.4933 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.1716, allocations: 3.984 kB / 0.4933 GB, free: 6.531 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005117/0.1767, allocations: 2.88 MB / 0.4961 GB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/0.1767, allocations: 4 kB / 0.4961 GB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002941/0.1797, allocations: 0.5346 MB / 0.4966 GB, free: 3.008 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001243/0.1798, allocations: 36.84 kB / 0.4967 GB, free: 2.969 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001103/0.1799, allocations: 23.98 kB / 0.4967 GB, free: 2.945 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001324/0.1813, allocations: 1.638 MB / 0.4983 GB, free: 1.172 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.1813, allocations: 4.031 kB / 0.4983 GB, free: 1.168 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004021/0.1853, allocations: 2.542 MB / 0.5008 GB, free: 14.56 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001732/0.1855, allocations: 132.3 kB / 0.5009 GB, free: 14.41 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001222/0.1856, allocations: 23.98 kB / 0.5009 GB, free: 14.39 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006061/0.1863, allocations: 67.91 kB / 0.501 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.1865, allocations: 84.42 kB / 0.5011 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.439e-05/0.1865, allocations: 24 kB / 0.5011 GB, free: 14.21 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003095/0.1869, allocations: 279.1 kB / 0.5014 GB, free: 13.94 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1869, allocations: 0 / 0.5014 GB, free: 13.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0008657/0.1877, allocations: 236 kB / 0.5016 GB, free: 13.71 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 7 (ind.i[1],ind.i[2],ind.i[3],meterAC.pav[1],meterAC.pav[2],meterAC.pav[3],meterDC.pav) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 81 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004231/0.192, allocations: 3.149 MB / 0.5047 GB, free: 10.5 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.005103/0.1971, allocations: 2.329 MB / 0.5069 GB, free: 8.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.572e-06/0.1971, allocations: 4.188 kB / 0.5069 GB, free: 8.145 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002961/0.2001, allocations: 1.197 MB / 0.5081 GB, free: 6.938 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009811/0.2011, allocations: 149.5 kB / 0.5082 GB, free: 6.793 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1714/0.3725, allocations: 9.213 MB / 0.5172 GB, free: 70.55 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00057/0.3731, allocations: 1.079 MB / 0.5183 GB, free: 69.85 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0007973/0.3739, allocations: 270.3 kB / 0.5186 GB, free: 69.84 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000426/0.3743, allocations: 290.4 kB / 0.5188 GB, free: 69.84 MB / 398.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3743, allocations: 3.75 kB / 0.5188 GB, free: 69.84 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04244/0.4168, allocations: 17.52 MB / 0.5359 GB, free: 64.76 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.98, allocations: 8.391 kB / 0.5359 GB, free: 64.76 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-05 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe 2>&1)