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.001288/0.001288, allocations: 108.1 kB / 16.62 MB, free: 6.809 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.001359/0.001359, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.241/1.241, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1624/0.1624, allocations: 38.03 MB / 329.4 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00125/0.00125, allocations: 65.8 kB / 398.4 MB, free: 34.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09942/0.1007, allocations: 58.07 MB / 456.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007735/0.1085, allocations: 7.093 MB / 463.5 MB, free: 1.191 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002368/0.1108, allocations: 1.656 MB / 465.2 MB, free: 15.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000294/0.1112, allocations: 43.69 kB / 465.2 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003918/0.1116, allocations: 119.2 kB / 465.4 MB, free: 15.37 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006597/0.1122, allocations: 382.4 kB / 465.7 MB, free: 15 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003413/0.1126, allocations: 179.7 kB / 465.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008592/0.1135, allocations: 1.083 MB / 467 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003712/0.1138, allocations: 352.6 kB / 467.3 MB, free: 13.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004631/0.1143, allocations: 462.3 kB / 467.8 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006105/0.1149, allocations: 0.5568 MB / 468.3 MB, free: 12.37 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.279e-05/0.115, allocations: 71.94 kB / 468.4 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001055/0.1151, allocations: 64 kB / 468.5 MB, free: 12.24 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002402/0.1154, allocations: 307.3 kB / 468.8 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002868/0.1157, allocations: 366.4 kB / 469.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00062/0.1163, allocations: 0.8372 MB / 470 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.1163, allocations: 0 / 470 MB, free: 10.74 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.1163, allocations: 0 / 470 MB, free: 10.74 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1163, allocations: 0 / 470 MB, free: 10.74 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.001655/0.118, allocations: 1.004 MB / 471 MB, free: 9.684 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.342e-05/0.118, allocations: 11.89 kB / 471 MB, free: 9.672 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/0.1182, allocations: 106.7 kB / 471.1 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001066/0.1183, allocations: 72.09 kB / 471.2 MB, free: 9.488 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007738/0.119, allocations: 0.5419 MB / 471.7 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001351/0.1192, allocations: 116.6 kB / 471.8 MB, free: 8.781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.534e-05/0.1193, allocations: 59.92 kB / 471.9 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001141/0.1204, allocations: 0.7733 MB / 472.6 MB, free: 7.914 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.1205, allocations: 4 kB / 472.6 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.294e-05/0.1205, allocations: 20 kB / 472.7 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001012/0.1206, allocations: 36.97 kB / 472.7 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.1218, allocations: 0.722 MB / 473.4 MB, free: 7.129 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003099/0.1249, allocations: 2.612 MB / 476 MB, free: 4.426 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001372/0.1263, allocations: 0.8086 MB / 476.8 MB, free: 3.582 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005868/0.1269, allocations: 399.4 kB / 477.2 MB, free: 3.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.741e-05/0.127, allocations: 4.438 kB / 477.2 MB, free: 3.176 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.127, allocations: 42.94 kB / 477.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.683e-06/0.127, allocations: 0 / 477.3 MB, free: 3.125 MB / 350.1 MB Notification: Performance of matching and sorting (n=51): time 0.003542/0.1306, allocations: 2.135 MB / 479.4 MB, free: 0.875 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.196e-05/0.1306, allocations: 93.48 kB / 479.5 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.131, allocations: 397.8 kB / 479.9 MB, free: 376 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.811e-05/0.131, allocations: 37.7 kB / 479.9 MB, free: 332 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001482/0.1312, allocations: 276.6 kB / 480.2 MB, free: 52 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001305/0.1313, allocations: 181.4 kB / 480.4 MB, free: 15.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/0.1315, allocations: 102.1 kB / 480.5 MB, free: 15.76 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1316, allocations: 362.8 kB / 480.8 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.1321, allocations: 272.9 kB / 481.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005303/0.1326, allocations: 381.1 kB / 481.5 MB, free: 14.72 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001002/0.1336, allocations: 0.6537 MB / 482.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.1337, allocations: 0 / 482.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001355/0.135, allocations: 0.8717 MB / 483 MB, free: 13.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.828e-05/0.135, allocations: 10.41 kB / 483 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1351, allocations: 11.94 kB / 483 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002211/0.1353, allocations: 69.67 kB / 483.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.1366, allocations: 311.5 kB / 483.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005038/0.1417, allocations: 6.54 MB / 489.9 MB, free: 5.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003422/0.142, allocations: 39.95 kB / 490 MB, free: 5.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/0.1421, allocations: 20 kB / 490 MB, free: 5.57 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.0002484/0.1423, allocations: 242 kB / 490.2 MB, free: 5.324 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.763e-05/0.1424, allocations: 51.34 kB / 490.3 MB, free: 5.273 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/0.1437, allocations: 0.8281 MB / 491.1 MB, free: 4.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.1438, allocations: 7.938 kB / 491.1 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1438, allocations: 0 / 491.1 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1438, allocations: 0 / 491.1 MB, free: 4.402 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002386/0.1462, allocations: 1.673 MB / 492.8 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1462, allocations: 0 / 492.8 MB, free: 2.629 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/0.1477, allocations: 323.7 kB / 493.1 MB, free: 2.312 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002316/0.1479, allocations: 97.56 kB / 493.2 MB, free: 2.211 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.461e-05/0.148, allocations: 12 kB / 493.2 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001893/0.1499, allocations: 3.165 MB / 496.4 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1499, allocations: 4.031 kB / 496.4 MB, free: 14.75 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001836/0.1517, allocations: 1.309 MB / 497.7 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.428e-05/0.1518, allocations: 128.5 kB / 497.8 MB, free: 13.24 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.082e-05/0.1519, allocations: 11.94 kB / 497.8 MB, free: 13.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.1523, allocations: 39.95 kB / 497.9 MB, free: 13.19 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001147/0.1524, allocations: 51.88 kB / 497.9 MB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.298e-05/0.1524, allocations: 19.98 kB / 497.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002395/0.1527, allocations: 279.1 kB / 498.2 MB, free: 12.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1527, allocations: 0 / 498.2 MB, free: 12.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0005626/0.1532, allocations: 144 kB / 498.3 MB, free: 12.71 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.00207/0.1553, allocations: 1.876 MB / 0.4885 GB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002521/0.1579, allocations: 1.175 MB / 0.4896 GB, free: 9.559 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.1579, allocations: 0 / 0.4896 GB, free: 9.559 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001769/0.1596, allocations: 0.7944 MB / 0.4904 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006866/0.1603, allocations: 143.3 kB / 0.4906 GB, free: 8.594 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007858/0.1682, allocations: 6.131 MB / 0.4965 GB, free: 2.223 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.1687, allocations: 0.9408 MB / 0.4975 GB, free: 1.254 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003902/0.1691, allocations: 128.7 kB / 0.4976 GB, free: 1.129 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.1694, allocations: 199.4 kB / 0.4978 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1694, allocations: 0 / 0.4978 GB, free: 0.9375 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.431/1.6, allocations: 12.63 MB / 0.5101 GB, free: 4.512 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003051/1.601, allocations: 251.9 kB / 0.5104 GB, free: 4.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.708/4.308, allocations: 7.938 kB / 0.5104 GB, free: 4.234 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)