Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_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 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.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_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.001358/0.001359, allocations: 102.5 kB / 16.51 MB, free: 6.641 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.001419/0.001419, allocations: 194.1 kB / 17.42 MB, free: 6.066 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.378/1.378, allocations: 205.1 MB / 223.3 MB, free: 12.47 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1717/0.1717, allocations: 37.98 MB / 308.6 MB, free: 6.25 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.001363/0.001363, allocations: 71.5 kB / 374.7 MB, free: 4.012 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2361, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.006439/0.2426, allocations: 7.513 MB / 437.5 MB, free: 12.22 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004304/0.247, allocations: 2.447 MB / 439.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008413/0.2478, allocations: 39.75 kB / 440 MB, free: 9.723 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00142/0.2493, allocations: 482.1 kB / 440.4 MB, free: 9.25 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001157/0.2504, allocations: 0.5097 MB / 440.9 MB, free: 8.738 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008331/0.2513, allocations: 323.5 kB / 441.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001544/0.2528, allocations: 1.836 MB / 443.1 MB, free: 6.582 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007508/0.2536, allocations: 0.6346 MB / 443.7 MB, free: 5.938 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005209/0.2541, allocations: 466.1 kB / 444.2 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007066/0.2549, allocations: 0.7556 MB / 444.9 MB, free: 4.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001134/0.255, allocations: 60 kB / 445 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009567/0.256, allocations: 0.6084 MB / 445.6 MB, free: 4.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003511/0.2563, allocations: 450.9 kB / 446.1 MB, free: 3.613 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004356/0.2568, allocations: 497.6 kB / 446.5 MB, free: 3.125 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.2578, allocations: 1.472 MB / 448 MB, free: 1.648 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.761e-06/0.2578, allocations: 0 / 448 MB, free: 1.648 MB / 318.1 MB Notification: Performance of FrontEnd: time 9.81e-07/0.2578, allocations: 0 / 448 MB, free: 1.648 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.166e-05/0.2579, allocations: 0 / 448 MB, free: 1.648 MB / 318.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.002523/0.2604, allocations: 1.379 MB / 449.4 MB, free: 220 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.685e-05/0.2604, allocations: 8.031 kB / 449.4 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001402/0.2606, allocations: 143.8 kB / 449.5 MB, free: 60 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007248/0.2613, allocations: 135.8 kB / 449.7 MB, free: 15.92 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001117/0.2625, allocations: 0.6608 MB / 450.3 MB, free: 15.22 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000218/0.2627, allocations: 175.3 kB / 450.5 MB, free: 15.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001872/0.2629, allocations: 91.91 kB / 450.6 MB, free: 14.94 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002147/0.265, allocations: 1.406 MB / 452 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.166e-05/0.2651, allocations: 0 / 452 MB, free: 13.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.794e-05/0.2652, allocations: 35.98 kB / 452 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002136/0.2654, allocations: 81.95 kB / 452.1 MB, free: 13.38 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002521/0.2679, allocations: 1.526 MB / 453.6 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006477/0.2744, allocations: 4.423 MB / 458.1 MB, free: 7.305 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002153/0.2766, allocations: 1.194 MB / 459.3 MB, free: 6.094 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001226/0.2778, allocations: 0.7927 MB / 460 MB, free: 5.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.103e-05/0.2779, allocations: 16.64 kB / 460.1 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.2779, allocations: 39.22 kB / 460.1 MB, free: 5.23 MB / 334.1 MB Notification: Performance of pre-optimization done (n=101): time 3.056e-06/0.278, allocations: 3.938 kB / 460.1 MB, free: 5.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=102): time 0.00678/0.2847, allocations: 3.854 MB / 464 MB, free: 1.277 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.997e-05/0.2848, allocations: 90.11 kB / 464.1 MB, free: 1.172 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004248/0.2852, allocations: 394 kB / 464.4 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.963e-05/0.2853, allocations: 37.7 kB / 464.5 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002061/0.2855, allocations: 356.2 kB / 464.8 MB, free: 392 kB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002479/0.2858, allocations: 346.8 kB / 465.2 MB, free: 40 kB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002852/0.2861, allocations: 158.7 kB / 465.3 MB, free: 15.88 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.2862, allocations: 378.8 kB / 465.7 MB, free: 15.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001061/0.2873, allocations: 0.5914 MB / 466.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001083/0.2884, allocations: 0.7502 MB / 467 MB, free: 14.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002071/0.2905, allocations: 1.383 MB / 468.4 MB, free: 12.68 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.2905, allocations: 8 kB / 468.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002495/0.293, allocations: 1.599 MB / 470 MB, free: 11.04 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.931e-05/0.293, allocations: 8 kB / 470 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.293, allocations: 8.188 kB / 470 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001435/0.2932, allocations: 32.84 kB / 470.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002325/0.2955, allocations: 0.4993 MB / 470.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005756/0.3013, allocations: 6.18 MB / 476.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000677/0.302, allocations: 83.89 kB / 476.8 MB, free: 3.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.787e-05/0.3021, allocations: 27.98 kB / 476.9 MB, free: 3.676 MB / 350.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.0004365/0.3025, allocations: 317.6 kB / 477.2 MB, free: 3.355 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.3027, allocations: 75.17 kB / 477.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/0.3052, allocations: 1.596 MB / 478.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.161e-05/0.3053, allocations: 20 kB / 478.9 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3053, allocations: 3.984 kB / 478.9 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.016e-05/0.3053, allocations: 3.984 kB / 478.9 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004125/0.3094, allocations: 2.869 MB / 481.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/0.3095, allocations: 12.05 kB / 481.7 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002547/0.312, allocations: 0.5227 MB / 482.3 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001072/0.3121, allocations: 40.83 kB / 482.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.652e-05/0.3122, allocations: 24 kB / 482.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009642/0.3132, allocations: 1.478 MB / 483.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.073e-06/0.3132, allocations: 0 / 483.8 MB, free: 12.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003645/0.3169, allocations: 2.546 MB / 486.3 MB, free: 9.84 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001355/0.317, allocations: 132.3 kB / 486.5 MB, free: 9.691 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.3171, allocations: 31.92 kB / 486.5 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005638/0.3177, allocations: 71.91 kB / 486.6 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001922/0.3179, allocations: 80.42 kB / 486.7 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.095e-05/0.318, allocations: 27.98 kB / 486.7 MB, free: 9.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002935/0.3183, allocations: 275.1 kB / 487 MB, free: 9.211 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3183, allocations: 0 / 487 MB, free: 9.211 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008192/0.3191, allocations: 243.9 kB / 487.2 MB, free: 8.973 MB / 366.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.004218/0.3233, allocations: 3.153 MB / 490.3 MB, free: 5.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.004241/0.3276, allocations: 1.825 MB / 492.2 MB, free: 3.906 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.3276, allocations: 0 / 492.2 MB, free: 3.906 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002704/0.3303, allocations: 1.198 MB / 493.4 MB, free: 2.699 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009679/0.3313, allocations: 145.5 kB / 493.5 MB, free: 2.555 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.014/0.3454, allocations: 9.566 MB / 0.4913 GB, free: 8.727 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007167/0.3461, allocations: 1.072 MB / 0.4923 GB, free: 7.629 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007721/0.3469, allocations: 273.6 kB / 0.4926 GB, free: 7.359 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004708/0.3474, allocations: 291.3 kB / 0.4929 GB, free: 7.074 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3474, allocations: 4 kB / 0.4929 GB, free: 7.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0326/0.38, allocations: 16.86 MB / 0.5093 GB, free: 6.219 MB / 398.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002282/0.3803, allocations: 239 kB / 0.5096 GB, free: 5.953 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.197/2.577, allocations: 0 / 0.5096 GB, free: 5.953 MB / 398.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_PowerSystems_Examples_AC3ph_Inverters_Rectifier.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe 2>&1)