Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.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.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_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.001216/0.001216, allocations: 103.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.001175/0.001175, 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.335/1.335, allocations: 222.9 MB / 241.5 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.1791/0.1791, allocations: 38.03 MB / 329.7 MB, free: 8.836 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 59.83 kB / 398.9 MB, free: 33.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1053, allocations: 58.06 MB / 457 MB, free: 7.945 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.008107/0.1134, allocations: 6.34 MB / 463.3 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002601/0.1161, allocations: 1.445 MB / 464.8 MB, free: 124 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004552/0.1165, allocations: 19.88 kB / 464.8 MB, free: 104 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006081/0.1172, allocations: 154.8 kB / 464.9 MB, free: 15.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009419/0.1181, allocations: 429.9 kB / 465.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004908/0.1186, allocations: 203.7 kB / 465.6 MB, free: 15.33 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001174/0.1198, allocations: 1.118 MB / 466.7 MB, free: 14.21 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000479/0.1203, allocations: 360.6 kB / 467 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006908/0.121, allocations: 466.2 kB / 467.5 MB, free: 13.4 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000793/0.1218, allocations: 0.5412 MB / 468 MB, free: 12.86 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00014/0.122, allocations: 64 kB / 468.1 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00017/0.1222, allocations: 64 kB / 468.1 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003259/0.1225, allocations: 311.3 kB / 468.4 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004461/0.123, allocations: 378.2 kB / 468.8 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008274/0.1238, allocations: 0.8605 MB / 469.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.1238, allocations: 0 / 469.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.412e-06/0.1238, allocations: 0 / 469.7 MB, free: 11.19 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.749e-05/0.1239, allocations: 0 / 469.7 MB, free: 11.19 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002147/0.126, allocations: 1.023 MB / 470.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.1261, allocations: 11.89 kB / 470.7 MB, free: 10.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001411/0.1262, allocations: 98.7 kB / 470.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.1264, allocations: 80.08 kB / 470.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009228/0.1273, allocations: 0.5572 MB / 471.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.1275, allocations: 120.6 kB / 471.6 MB, free: 9.191 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.157e-05/0.1276, allocations: 52 kB / 471.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001324/0.1289, allocations: 0.7811 MB / 472.4 MB, free: 8.324 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.1289, allocations: 4 kB / 472.4 MB, free: 8.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.05e-05/0.129, allocations: 20 kB / 472.4 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001281/0.1291, allocations: 44.91 kB / 472.5 MB, free: 8.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.1306, allocations: 0.6985 MB / 473.2 MB, free: 7.559 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004443/0.135, allocations: 2.7 MB / 475.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001972/0.137, allocations: 0.8889 MB / 476.7 MB, free: 3.812 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005985/0.1376, allocations: 329.9 kB / 477.1 MB, free: 3.488 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.1377, allocations: 4 kB / 477.1 MB, free: 3.484 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.403e-05/0.1377, allocations: 42.56 kB / 477.1 MB, free: 3.434 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.254e-06/0.1377, allocations: 0 / 477.1 MB, free: 3.434 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.004226/0.1419, allocations: 1.941 MB / 479.1 MB, free: 1.375 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.908e-05/0.142, allocations: 85.05 kB / 479.1 MB, free: 1.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004639/0.1425, allocations: 425.9 kB / 479.6 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.1425, allocations: 29.7 kB / 479.6 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002073/0.1427, allocations: 324.2 kB / 479.9 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001155/0.1429, allocations: 134 kB / 480 MB, free: 368 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/0.143, allocations: 86.25 kB / 480.1 MB, free: 276 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.1432, allocations: 358.8 kB / 480.5 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004834/0.1437, allocations: 237 kB / 480.7 MB, free: 15.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005641/0.1442, allocations: 358.2 kB / 481 MB, free: 15.28 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00113/0.1454, allocations: 0.5744 MB / 481.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/0.1454, allocations: 4 kB / 481.6 MB, free: 14.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001723/0.1471, allocations: 0.784 MB / 482.4 MB, free: 13.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.1472, allocations: 8.375 kB / 482.4 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.1472, allocations: 8 kB / 482.4 MB, free: 13.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003203/0.1475, allocations: 73.67 kB / 482.5 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001564/0.1491, allocations: 283.6 kB / 482.8 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006627/0.1557, allocations: 6.516 MB / 489.3 MB, free: 6.398 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000495/0.1563, allocations: 39.95 kB / 489.3 MB, free: 6.359 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.087e-05/0.1564, allocations: 19.94 kB / 489.3 MB, free: 6.34 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003611/0.1567, allocations: 245.6 kB / 489.6 MB, free: 6.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001351/0.1569, allocations: 51.48 kB / 489.6 MB, free: 6.039 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.1583, allocations: 0.7257 MB / 490.4 MB, free: 5.285 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.903e-06/0.1583, allocations: 8 kB / 490.4 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.187e-06/0.1583, allocations: 0 / 490.4 MB, free: 5.277 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.1583, allocations: 3.984 kB / 490.4 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002493/0.1608, allocations: 1.498 MB / 491.9 MB, free: 3.684 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.1608, allocations: 4 kB / 491.9 MB, free: 3.68 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001583/0.1624, allocations: 303.6 kB / 492.2 MB, free: 3.383 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002752/0.1627, allocations: 85.64 kB / 492.3 MB, free: 3.293 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.953e-05/0.1627, allocations: 11.98 kB / 492.3 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002543/0.1653, allocations: 3.161 MB / 495.4 MB, free: 15.84 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1653, allocations: 3.984 kB / 495.4 MB, free: 15.83 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001963/0.1673, allocations: 1.121 MB / 496.6 MB, free: 14.66 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001657/0.1675, allocations: 124.5 kB / 496.7 MB, free: 14.52 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.84e-05/0.1676, allocations: 12 kB / 496.7 MB, free: 14.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003385/0.1679, allocations: 31.95 kB / 496.7 MB, free: 14.47 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001372/0.1681, allocations: 43.83 kB / 496.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.195e-05/0.1681, allocations: 15.98 kB / 496.8 MB, free: 14.41 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003551/0.1685, allocations: 291.1 kB / 497.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1685, allocations: 0 / 497.1 MB, free: 14.13 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0007157/0.1692, allocations: 144 kB / 497.2 MB, free: 13.99 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (ind.i[1],ind.i[2],meterAC.pav,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 (39): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002214/0.1714, allocations: 1.662 MB / 498.9 MB, free: 12.27 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002772/0.1742, allocations: 1.056 MB / 499.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.1742, allocations: 0 / 499.9 MB, free: 11.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001975/0.1762, allocations: 0.7282 MB / 0.4889 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007972/0.177, allocations: 140.1 kB / 0.4891 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008093/0.1851, allocations: 5.554 MB / 0.4945 GB, free: 4.516 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006105/0.1858, allocations: 0.9448 MB / 0.4954 GB, free: 3.543 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003489/0.1861, allocations: 104.5 kB / 0.4955 GB, free: 3.441 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.1864, allocations: 199.4 kB / 0.4957 GB, free: 3.246 MB / 382.1 MB Notification: Performance of SimCode: time 8.12e-07/0.1864, allocations: 0 / 0.4957 GB, free: 3.246 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03897/0.2254, allocations: 12.67 MB / 0.5081 GB, free: 6.773 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.68/11.91, allocations: 14.05 kB / 0.5081 GB, free: 6.766 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0002 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Elementary_Rectifier.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)