Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_latest_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.001454/0.001454, allocations: 105.8 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.00168/0.00168, 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.361/1.361, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1802/0.1802, allocations: 38.04 MB / 329.7 MB, free: 8.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001329/0.001329, allocations: 66.77 kB / 398.9 MB, free: 33.96 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08944/0.09079, allocations: 58.07 MB / 457 MB, free: 7.949 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.008212/0.09903, allocations: 6.678 MB / 463.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00358/0.1026, allocations: 2.122 MB / 465.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005122/0.1032, allocations: 23.88 kB / 465.8 MB, free: 15.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001468/0.1047, allocations: 0.5054 MB / 466.3 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001271/0.1059, allocations: 0.5639 MB / 466.9 MB, free: 14.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00082/0.1068, allocations: 351.3 kB / 467.2 MB, free: 13.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001334/0.1081, allocations: 1.294 MB / 468.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009817/0.1091, allocations: 0.7324 MB / 469.2 MB, free: 11.62 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008539/0.11, allocations: 0.541 MB / 469.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00104/0.111, allocations: 0.7362 MB / 470.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002425/0.1113, allocations: 108 kB / 470.6 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001118/0.1124, allocations: 0.6357 MB / 471.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004962/0.1129, allocations: 482.9 kB / 471.7 MB, free: 9.129 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007209/0.1137, allocations: 0.5289 MB / 472.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001723/0.1154, allocations: 1.511 MB / 473.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.1154, allocations: 0 / 473.8 MB, free: 7.082 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1154, allocations: 4 kB / 473.8 MB, free: 7.078 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.195e-05/0.1155, allocations: 0 / 473.8 MB, free: 7.078 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.003473/0.119, allocations: 1.367 MB / 475.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.757e-05/0.119, allocations: 11.89 kB / 475.2 MB, free: 5.648 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002272/0.1192, allocations: 151.8 kB / 475.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007916/0.12, allocations: 139.7 kB / 475.4 MB, free: 5.355 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001338/0.1214, allocations: 0.6609 MB / 476.1 MB, free: 4.652 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002277/0.1216, allocations: 175.4 kB / 476.3 MB, free: 4.465 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001961/0.1218, allocations: 80 kB / 476.3 MB, free: 4.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002343/0.1242, allocations: 1.41 MB / 477.8 MB, free: 2.934 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.617e-05/0.1242, allocations: 3.938 kB / 477.8 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001007/0.1243, allocations: 39.95 kB / 477.8 MB, free: 2.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002232/0.1246, allocations: 81.95 kB / 477.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002773/0.1273, allocations: 1.518 MB / 479.4 MB, free: 1.293 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006981/0.1343, allocations: 4.435 MB / 483.8 MB, free: 12.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002358/0.1367, allocations: 1.196 MB / 485 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001363/0.1381, allocations: 0.7778 MB / 485.8 MB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.257e-05/0.1382, allocations: 12.66 kB / 485.8 MB, free: 10.73 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.666e-05/0.1382, allocations: 43.2 kB / 485.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 3.466e-06/0.1382, allocations: 0 / 485.9 MB, free: 10.68 MB / 366.1 MB Notification: Performance of matching and sorting (n=102): time 0.007017/0.1453, allocations: 3.85 MB / 489.7 MB, free: 6.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.345e-05/0.1453, allocations: 90.11 kB / 489.8 MB, free: 6.625 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004451/0.1458, allocations: 405.9 kB / 490.2 MB, free: 6.219 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.234e-05/0.1459, allocations: 41.7 kB / 490.2 MB, free: 6.172 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002111/0.1461, allocations: 348.3 kB / 490.6 MB, free: 5.824 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002626/0.1464, allocations: 350.8 kB / 490.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002722/0.1466, allocations: 158.7 kB / 491.1 MB, free: 5.316 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1468, allocations: 378.8 kB / 491.4 MB, free: 4.938 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/0.1479, allocations: 0.5953 MB / 492 MB, free: 4.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001176/0.1491, allocations: 0.7386 MB / 492.8 MB, free: 3.555 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002311/0.1514, allocations: 1.391 MB / 494.2 MB, free: 2.117 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-06/0.1514, allocations: 4 kB / 494.2 MB, free: 2.113 MB / 366.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002858/0.1543, allocations: 1.6 MB / 495.8 MB, free: 500 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.1543, allocations: 11.94 kB / 495.8 MB, free: 488 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.818e-05/0.1544, allocations: 7.984 kB / 495.8 MB, free: 480 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001592/0.1545, allocations: 36.78 kB / 495.8 MB, free: 440 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002659/0.1572, allocations: 0.4995 MB / 496.3 MB, free: 15.93 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006782/0.164, allocations: 6.686 MB / 0.4912 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000713/0.1647, allocations: 79.89 kB / 0.4913 GB, free: 8.609 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001007/0.1648, allocations: 35.98 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.0004877/0.1653, allocations: 317.6 kB / 0.4916 GB, free: 8.254 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001955/0.1655, allocations: 71.09 kB / 0.4917 GB, free: 8.184 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002871/0.1684, allocations: 1.592 MB / 0.4933 GB, free: 6.562 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.826e-05/0.1685, allocations: 27.98 kB / 0.4933 GB, free: 6.535 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.1685, allocations: 8 kB / 0.4933 GB, free: 6.527 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.064e-05/0.1685, allocations: 3.984 kB / 0.4933 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004607/0.1731, allocations: 2.876 MB / 0.4961 GB, free: 3.543 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/0.1731, allocations: 4 kB / 0.4961 GB, free: 3.539 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002905/0.176, allocations: 0.5268 MB / 0.4966 GB, free: 3.012 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001144/0.1762, allocations: 36.84 kB / 0.4967 GB, free: 2.973 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.755e-05/0.1763, allocations: 23.98 kB / 0.4967 GB, free: 2.949 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001209/0.1775, allocations: 1.63 MB / 0.4983 GB, free: 1.184 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/0.1775, allocations: 7.969 kB / 0.4983 GB, free: 1.176 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004112/0.1816, allocations: 2.538 MB / 0.5008 GB, free: 14.57 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.1818, allocations: 136.2 kB / 0.5009 GB, free: 14.42 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001327/0.1819, allocations: 23.98 kB / 0.5009 GB, free: 14.4 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006522/0.1826, allocations: 76 kB / 0.501 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002057/0.1828, allocations: 80.47 kB / 0.5011 GB, free: 14.24 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.016e-05/0.1829, allocations: 24 kB / 0.5011 GB, free: 14.22 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000336/0.1832, allocations: 279.1 kB / 0.5014 GB, free: 13.95 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1832, allocations: 3.938 kB / 0.5014 GB, free: 13.94 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009728/0.1842, 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.004547/0.1888, allocations: 3.153 MB / 0.5047 GB, free: 10.49 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00539/0.1942, allocations: 2.333 MB / 0.5069 GB, free: 8.141 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.569e-06/0.1942, allocations: 0 / 0.5069 GB, free: 8.141 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00305/0.1972, allocations: 1.198 MB / 0.5081 GB, free: 6.934 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008942/0.1982, allocations: 152.3 kB / 0.5083 GB, free: 6.789 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1864/0.3846, allocations: 9.209 MB / 0.5173 GB, free: 70.05 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005801/0.3852, allocations: 1.08 MB / 0.5183 GB, free: 69.35 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0008101/0.386, allocations: 270.4 kB / 0.5186 GB, free: 69.34 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000416/0.3865, allocations: 289.7 kB / 0.5188 GB, free: 69.33 MB / 398.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3865, allocations: 0 / 0.5188 GB, free: 69.33 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03905/0.4255, allocations: 17.54 MB / 0.536 GB, free: 64.2 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.03, allocations: 24.91 kB / 0.536 GB, free: 64.18 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_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_latest_PowerSystems_Examples_AC3ph_Inverters_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe 2>&1)