Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.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.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_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.001572/0.001572, allocations: 107.3 kB / 16.92 MB, free: 5.664 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.00166/0.00166, allocations: 190.8 kB / 17.85 MB, free: 5.176 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.308/1.308, allocations: 222.9 MB / 241.6 MB, free: 15.32 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1738/0.1738, allocations: 38.02 MB / 329.7 MB, free: 8.809 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 60.7 kB / 398.9 MB, free: 33.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0971/0.09842, allocations: 58.05 MB / 457 MB, free: 7.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007947/0.1064, allocations: 6.256 MB / 463.2 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002693/0.1091, allocations: 1.426 MB / 464.6 MB, free: 260 kB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005162/0.1097, allocations: 27.81 kB / 464.7 MB, free: 232 kB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005383/0.1103, allocations: 131 kB / 464.8 MB, free: 100 kB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001055/0.1113, allocations: 425.9 kB / 465.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.1119, allocations: 191.6 kB / 465.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001617/0.1135, allocations: 1.075 MB / 466.5 MB, free: 14.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005435/0.1141, allocations: 360.6 kB / 466.8 MB, free: 14.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008486/0.1149, allocations: 458.3 kB / 467.3 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009373/0.1159, allocations: 0.5295 MB / 467.8 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001546/0.1161, allocations: 64 kB / 467.9 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002133/0.1163, allocations: 64 kB / 467.9 MB, free: 12.96 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003388/0.1166, allocations: 303.3 kB / 468.2 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000466/0.1171, allocations: 366.3 kB / 468.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008783/0.118, allocations: 0.845 MB / 469.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.118, allocations: 0 / 469.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.118, allocations: 0 / 469.4 MB, free: 11.45 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.651e-05/0.1181, allocations: 0 / 469.4 MB, free: 11.45 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.002369/0.1204, allocations: 0.9958 MB / 470.4 MB, free: 10.41 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.013e-05/0.1205, allocations: 11.89 kB / 470.4 MB, free: 10.39 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001669/0.1207, allocations: 102.7 kB / 470.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.1208, allocations: 76.03 kB / 470.6 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009925/0.1218, allocations: 0.5419 MB / 471.2 MB, free: 9.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001884/0.122, allocations: 124.6 kB / 471.3 MB, free: 9.496 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.1221, allocations: 59.91 kB / 471.3 MB, free: 9.438 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.1235, allocations: 0.7694 MB / 472.1 MB, free: 8.633 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.672e-05/0.1235, allocations: 4 kB / 472.1 MB, free: 8.629 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.644e-05/0.1236, allocations: 20 kB / 472.1 MB, free: 8.609 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001111/0.1237, allocations: 36.97 kB / 472.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001402/0.1251, allocations: 0.7259 MB / 472.9 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003748/0.1289, allocations: 2.6 MB / 475.5 MB, free: 5.152 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001539/0.1304, allocations: 0.8057 MB / 476.3 MB, free: 4.309 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006565/0.1311, allocations: 402.3 kB / 476.7 MB, free: 3.906 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.1312, allocations: 16.41 kB / 476.7 MB, free: 3.891 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.1312, allocations: 39 kB / 476.7 MB, free: 3.844 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.004e-06/0.1312, allocations: 0 / 476.7 MB, free: 3.844 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.004134/0.1353, allocations: 2.131 MB / 478.9 MB, free: 1.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.321e-05/0.1354, allocations: 85.55 kB / 479 MB, free: 1.496 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004633/0.1359, allocations: 401.9 kB / 479.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.002e-05/0.136, allocations: 41.64 kB / 479.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001984/0.1362, allocations: 280.5 kB / 479.7 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001685/0.1363, allocations: 181.4 kB / 479.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001551/0.1365, allocations: 98.16 kB / 479.9 MB, free: 496 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1367, allocations: 358.8 kB / 480.3 MB, free: 128 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005497/0.1372, allocations: 277 kB / 480.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000591/0.1378, allocations: 389.1 kB / 480.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001119/0.1389, allocations: 0.6537 MB / 481.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.139, allocations: 0 / 481.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001522/0.1405, allocations: 0.8642 MB / 482.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.1405, allocations: 13.97 kB / 482.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.363e-05/0.1406, allocations: 4 kB / 482.5 MB, free: 13.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002747/0.1408, allocations: 81.78 kB / 482.5 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001531/0.1424, allocations: 307.5 kB / 482.9 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006016/0.1484, allocations: 6.528 MB / 489.4 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004401/0.1489, allocations: 43.95 kB / 489.4 MB, free: 6.312 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.491e-05/0.1489, allocations: 20 kB / 489.4 MB, free: 6.293 MB / 366.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: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 61 * 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.0003183/0.1492, allocations: 244.8 kB / 489.7 MB, free: 6.047 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.924e-05/0.1493, allocations: 47.44 kB / 489.7 MB, free: 6 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001481/0.1508, allocations: 0.828 MB / 490.6 MB, free: 5.137 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1508, allocations: 4 kB / 490.6 MB, free: 5.133 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.1509, allocations: 4 kB / 490.6 MB, free: 5.129 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.629e-05/0.1509, allocations: 3.984 kB / 490.6 MB, free: 5.125 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002718/0.1536, allocations: 1.681 MB / 492.2 MB, free: 3.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.1536, allocations: 4.188 kB / 492.3 MB, free: 3.344 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/0.1553, allocations: 319.5 kB / 492.6 MB, free: 3.031 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002524/0.1556, allocations: 93.55 kB / 492.7 MB, free: 2.934 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.1556, allocations: 15.98 kB / 492.7 MB, free: 2.918 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002304/0.158, allocations: 3.161 MB / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.158, allocations: 4.031 kB / 495.8 MB, free: 15.48 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.1601, allocations: 1.324 MB / 497.2 MB, free: 14.09 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001282/0.1602, allocations: 124.5 kB / 497.3 MB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.75e-05/0.1603, allocations: 15.94 kB / 497.3 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000396/0.1607, allocations: 35.95 kB / 497.3 MB, free: 13.9 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/0.1608, allocations: 43.94 kB / 497.4 MB, free: 13.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.659e-05/0.1609, allocations: 16 kB / 497.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0003581/0.1612, allocations: 283.1 kB / 497.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.653e-06/0.1612, allocations: 0 / 497.7 MB, free: 13.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006867/0.1619, allocations: 147.9 kB / 497.8 MB, free: 13.42 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (51): * Single equations (assignments): 48 * 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.002564/0.1645, allocations: 1.872 MB / 499.7 MB, free: 11.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003084/0.1676, allocations: 1.178 MB / 0.4891 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.1676, allocations: 0 / 0.4891 GB, free: 10.27 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002058/0.1697, allocations: 0.7983 MB / 0.4899 GB, free: 9.449 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008305/0.1705, allocations: 137.4 kB / 0.49 GB, free: 9.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009496/0.18, allocations: 5.914 MB / 0.4958 GB, free: 3.148 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005663/0.1806, allocations: 0.9369 MB / 0.4967 GB, free: 2.184 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0004247/0.1811, allocations: 132.7 kB / 0.4969 GB, free: 2.055 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002863/0.1814, allocations: 195.4 kB / 0.497 GB, free: 1.863 MB / 382.1 MB Notification: Performance of SimCode: time 5.92e-07/0.1814, allocations: 0 / 0.497 GB, free: 1.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0528/0.2342, allocations: 12.81 MB / 0.5095 GB, free: 5.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.96/11.19, allocations: 0 / 0.5095 GB, free: 5.215 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)