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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.001202/0.001201, allocations: 93.81 kB / 16.3 MB, free: 5.629 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.001387/0.001387, allocations: 186.6 kB / 17.2 MB, free: 5.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.4 MB / 223.3 MB, free: 5.125 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.3027/0.3027, allocations: 38.05 MB / 309.7 MB, free: 9.215 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005229/0.000523, allocations: 16 kB / 376.6 MB, free: 15.05 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1049/0.1054, allocations: 56.34 MB / 432.9 MB, free: 6.609 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.007148/0.1126, allocations: 6.027 MB / 438.9 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003122/0.1158, allocations: 1.661 MB / 440.6 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006814/0.1165, allocations: 39.69 kB / 440.6 MB, free: 14.85 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006435/0.1172, allocations: 143.1 kB / 440.8 MB, free: 14.71 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00122/0.1184, allocations: 323 kB / 441.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006246/0.119, allocations: 187.7 kB / 441.3 MB, free: 14.21 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008664/0.1199, allocations: 0.5458 MB / 441.8 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004011/0.1203, allocations: 247.6 kB / 442.1 MB, free: 13.41 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005637/0.1209, allocations: 334.8 kB / 442.4 MB, free: 13.08 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007553/0.1217, allocations: 358.9 kB / 442.7 MB, free: 12.73 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.1219, allocations: 28 kB / 442.8 MB, free: 12.7 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001965/0.1221, allocations: 32 kB / 442.8 MB, free: 12.67 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003188/0.1224, allocations: 247.4 kB / 443 MB, free: 12.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000252/0.1227, allocations: 149.3 kB / 443.2 MB, free: 12.27 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006401/0.1233, allocations: 0.6429 MB / 443.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.535e-06/0.1233, allocations: 0 / 443.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1233, allocations: 0 / 443.8 MB, free: 11.63 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.82e-05/0.1234, allocations: 0 / 443.8 MB, free: 11.63 MB / 382.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.002059/0.1254, allocations: 0.9023 MB / 444.7 MB, free: 10.68 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.1255, allocations: 15.97 kB / 444.8 MB, free: 10.66 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002356/0.1257, allocations: 106.4 kB / 444.9 MB, free: 10.55 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001793/0.1259, allocations: 75.16 kB / 444.9 MB, free: 10.47 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001197/0.1271, allocations: 0.5214 MB / 445.5 MB, free: 9.91 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001895/0.1273, allocations: 128.7 kB / 445.6 MB, free: 9.773 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.1275, allocations: 55.91 kB / 445.6 MB, free: 9.719 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001421/0.1289, allocations: 0.7849 MB / 446.4 MB, free: 8.898 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.623e-05/0.1289, allocations: 3.938 kB / 446.4 MB, free: 8.895 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.618e-05/0.129, allocations: 20 kB / 446.4 MB, free: 8.875 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001209/0.1291, allocations: 40.97 kB / 446.5 MB, free: 8.836 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.1306, allocations: 0.7494 MB / 447.2 MB, free: 8.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004146/0.1348, allocations: 2.624 MB / 449.9 MB, free: 5.367 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001566/0.1364, allocations: 0.8399 MB / 450.7 MB, free: 4.492 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.875e-05/0.1364, allocations: 12.48 kB / 450.7 MB, free: 4.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.124e-05/0.1365, allocations: 39 kB / 450.7 MB, free: 4.434 MB / 382.1 MB Notification: Performance of pre-optimization done (n=50): time 2.756e-06/0.1365, allocations: 0 / 450.7 MB, free: 4.434 MB / 382.1 MB Notification: Performance of matching and sorting (n=51): time 0.00453/0.141, allocations: 2.214 MB / 453 MB, free: 2.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.1411, allocations: 93.48 kB / 453.1 MB, free: 1.992 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004909/0.1416, allocations: 390 kB / 453.4 MB, free: 1.598 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.238e-05/0.1416, allocations: 33.7 kB / 453.5 MB, free: 1.559 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.1418, allocations: 292.4 kB / 453.7 MB, free: 1.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/0.142, allocations: 177.4 kB / 453.9 MB, free: 1.094 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.075e-05/0.1421, allocations: 12 kB / 453.9 MB, free: 1.082 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.1422, allocations: 362.8 kB / 454.3 MB, free: 0.7188 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005358/0.1428, allocations: 284.9 kB / 454.6 MB, free: 452 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006293/0.1434, allocations: 401.1 kB / 455 MB, free: 12 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1888/0.3322, allocations: 319.6 kB / 455.3 MB, free: 51.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.3323, allocations: 0 / 455.3 MB, free: 51.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001455/0.3338, allocations: 0.9005 MB / 456.2 MB, free: 50.88 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.408e-05/0.3338, allocations: 13.31 kB / 456.2 MB, free: 50.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.3338, allocations: 3.062 kB / 456.2 MB, free: 50.88 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002579/0.3341, allocations: 73.88 kB / 456.3 MB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.3355, allocations: 395.3 kB / 456.6 MB, free: 50.87 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004316/0.3399, allocations: 6.235 MB / 462.9 MB, free: 45.67 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004445/0.3403, allocations: 56.12 kB / 462.9 MB, free: 45.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.751e-05/0.3404, allocations: 18.5 kB / 463 MB, free: 45.66 MB / 382.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 (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000305/0.3407, allocations: 235.5 kB / 463.2 MB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.48e-05/0.3408, allocations: 58.52 kB / 463.2 MB, free: 45.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001291/0.3421, allocations: 0.8568 MB / 464.1 MB, free: 45.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3421, allocations: 3.25 kB / 464.1 MB, free: 45.38 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.3421, allocations: 3.406 kB / 464.1 MB, free: 45.38 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3421, allocations: 8.688 kB / 464.1 MB, free: 45.38 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002292/0.3444, allocations: 1.716 MB / 465.8 MB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.3444, allocations: 0 / 465.8 MB, free: 44.88 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001598/0.346, allocations: 424.9 kB / 466.2 MB, free: 44.86 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002443/0.3463, allocations: 89.88 kB / 466.3 MB, free: 44.84 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.17e-05/0.3463, allocations: 18.03 kB / 466.3 MB, free: 44.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001636/0.348, allocations: 2.903 MB / 469.3 MB, free: 42.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.348, allocations: 0 / 469.3 MB, free: 42.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001874/0.3499, allocations: 1.443 MB / 470.7 MB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.589e-05/0.35, allocations: 126.4 kB / 470.8 MB, free: 41.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.694e-05/0.3501, allocations: 16.62 kB / 470.8 MB, free: 41.66 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003471/0.3504, allocations: 50.67 kB / 470.9 MB, free: 41.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001107/0.3506, allocations: 44.64 kB / 470.9 MB, free: 41.66 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.295e-05/0.3506, allocations: 24.75 kB / 471 MB, free: 41.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002461/0.3508, allocations: 273.4 kB / 471.2 MB, free: 41.57 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3509, allocations: 4 kB / 471.2 MB, free: 41.57 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0006074/0.3515, allocations: 148 kB / 471.4 MB, free: 41.57 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002096/0.3536, allocations: 2.471 MB / 473.8 MB, free: 40.1 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002472/0.3561, allocations: 1.205 MB / 475 MB, free: 39.84 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.3561, allocations: 0 / 475 MB, free: 39.84 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001798/0.3579, allocations: 0.9006 MB / 475.9 MB, free: 39.58 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005977/0.3585, allocations: 120.7 kB / 476.1 MB, free: 39.54 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005847/0.3643, allocations: 6.055 MB / 482.1 MB, free: 35.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003561/0.3647, allocations: 0.9544 MB / 483.1 MB, free: 34.88 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003829/0.3651, allocations: 129.3 kB / 483.2 MB, free: 34.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002476/0.3654, allocations: 195.9 kB / 483.4 MB, free: 34.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3654, allocations: 0 / 483.4 MB, free: 34.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02514/0.3905, allocations: 12.16 MB / 495.5 MB, free: 33.77 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001304/0.3907, allocations: 214 kB / 495.8 MB, free: 33.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.869/2.259, allocations: 4.969 kB / 495.8 MB, free: 33.52 MB / 382.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/linux/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) Environment - environmentSimulation: