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.0008172/0.0008173, allocations: 90.64 kB / 16.65 MB, free: 6.602 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.000818/0.0008181, allocations: 184.9 kB / 17.56 MB, free: 6.199 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.194/1.194, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1614/0.1614, allocations: 38.06 MB / 310.1 MB, free: 5.902 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.0004598/0.0004598, allocations: 12 kB / 377.3 MB, free: 2.602 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.2202, allocations: 56.32 MB / 433.6 MB, free: 18.64 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.004809/0.225, allocations: 6.661 MB / 440.3 MB, free: 11.95 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001928/0.227, allocations: 1.699 MB / 442 MB, free: 10.25 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002357/0.2272, allocations: 35.75 kB / 442 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002549/0.2275, allocations: 115.2 kB / 442.1 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005093/0.228, allocations: 390.4 kB / 442.5 MB, free: 9.715 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002746/0.2283, allocations: 167.8 kB / 442.7 MB, free: 9.551 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009257/0.2293, allocations: 1.621 MB / 444.3 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000301/0.2296, allocations: 283 kB / 444.5 MB, free: 7.648 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003461/0.2299, allocations: 366.3 kB / 444.9 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000508/0.2304, allocations: 0.5256 MB / 445.4 MB, free: 6.762 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.809e-05/0.2305, allocations: 32 kB / 445.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.338e-05/0.2306, allocations: 28 kB / 445.5 MB, free: 6.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000197/0.2308, allocations: 279.3 kB / 445.8 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002355/0.231, allocations: 348 kB / 446.1 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000448/0.2315, allocations: 0.7863 MB / 446.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2315, allocations: 0 / 446.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2315, allocations: 0 / 446.9 MB, free: 5.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.774e-06/0.2315, allocations: 0 / 446.9 MB, free: 5.293 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.001399/0.2329, allocations: 0.9062 MB / 447.8 MB, free: 4.336 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.234e-05/0.233, allocations: 12.03 kB / 447.8 MB, free: 4.324 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.562e-05/0.2331, allocations: 102.7 kB / 447.9 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.248e-05/0.2332, allocations: 72.09 kB / 448 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006877/0.2339, allocations: 0.5418 MB / 448.5 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001281/0.234, allocations: 124.6 kB / 448.6 MB, free: 3.426 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.791e-05/0.2341, allocations: 56 kB / 448.7 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.2351, allocations: 0.7888 MB / 449.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.602e-05/0.2351, allocations: 0 / 449.5 MB, free: 2.551 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.054e-05/0.2352, allocations: 27.94 kB / 449.5 MB, free: 2.523 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.054e-05/0.2353, allocations: 40.97 kB / 449.6 MB, free: 2.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001133/0.2364, allocations: 0.7494 MB / 450.3 MB, free: 1.734 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002833/0.2393, allocations: 2.636 MB / 452.9 MB, free: 15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001512/0.2408, allocations: 0.8439 MB / 453.8 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000639/0.2415, allocations: 419.4 kB / 454.2 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.2415, allocations: 8.438 kB / 454.2 MB, free: 13.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.2415, allocations: 39 kB / 454.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.176e-06/0.2415, allocations: 0 / 454.2 MB, free: 13.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=51): time 0.003777/0.2453, allocations: 2.233 MB / 456.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.042e-05/0.2454, allocations: 85.48 kB / 456.6 MB, free: 11.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003579/0.2457, allocations: 401.9 kB / 456.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.581e-05/0.2458, allocations: 33.7 kB / 457 MB, free: 10.77 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.246, allocations: 288.5 kB / 457.3 MB, free: 10.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.2461, allocations: 181.4 kB / 457.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.2462, allocations: 45.7 kB / 457.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.2463, allocations: 362.8 kB / 457.8 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005237/0.2468, allocations: 292.9 kB / 458.1 MB, free: 9.598 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005794/0.2474, allocations: 401.1 kB / 458.5 MB, free: 9.168 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001106/0.2485, allocations: 0.685 MB / 459.2 MB, free: 8.438 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.2485, allocations: 0 / 459.2 MB, free: 8.438 MB / 334.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00141/0.25, allocations: 0.9033 MB / 460.1 MB, free: 7.508 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.897e-05/0.25, allocations: 16.02 kB / 460.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.25, allocations: 4 kB / 460.1 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002147/0.2502, allocations: 69.67 kB / 460.2 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001549/0.2518, allocations: 399.5 kB / 460.6 MB, free: 7.023 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005222/0.257, allocations: 6.174 MB / 466.8 MB, free: 320 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003848/0.2574, allocations: 52.11 kB / 466.8 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.629e-05/0.2575, allocations: 16 kB / 466.8 MB, free: 252 kB / 334.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.0002875/0.2577, allocations: 241.8 kB / 467.1 MB, free: 0 / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.913e-05/0.2578, allocations: 43.61 kB / 467.1 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00146/0.2593, allocations: 0.8632 MB / 468 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.2593, allocations: 4 kB / 468 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2593, allocations: 0 / 468 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.753e-06/0.2593, allocations: 7.984 kB / 468 MB, free: 15.05 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002512/0.2619, allocations: 1.735 MB / 469.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.2619, allocations: 0 / 469.7 MB, free: 13.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001733/0.2636, allocations: 423.7 kB / 470.1 MB, free: 12.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002347/0.2639, allocations: 89.64 kB / 470.2 MB, free: 12.7 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.2639, allocations: 11.98 kB / 470.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00186/0.2658, allocations: 2.899 MB / 473.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.2658, allocations: 3.938 kB / 473.1 MB, free: 9.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002002/0.2678, allocations: 1.367 MB / 474.5 MB, free: 8.09 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.209e-05/0.2679, allocations: 120.5 kB / 474.6 MB, free: 7.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.353e-05/0.268, allocations: 16.03 kB / 474.6 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003517/0.2683, allocations: 43.95 kB / 474.7 MB, free: 7.895 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.2685, allocations: 51.88 kB / 474.7 MB, free: 7.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.001e-05/0.2685, allocations: 15.94 kB / 474.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002695/0.2688, allocations: 279.1 kB / 475 MB, free: 7.559 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2688, allocations: 0 / 475 MB, free: 7.559 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005853/0.2694, allocations: 148 kB / 475.2 MB, free: 7.414 MB / 350.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.002254/0.2716, allocations: 1.916 MB / 477.1 MB, free: 5.422 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002625/0.2743, allocations: 1.202 MB / 478.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2743, allocations: 0 / 478.3 MB, free: 4.195 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002032/0.2763, allocations: 0.9002 MB / 479.2 MB, free: 3.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008171/0.2772, allocations: 133.7 kB / 479.3 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008167/0.2853, allocations: 6.322 MB / 485.6 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004677/0.2858, allocations: 0.9408 MB / 486.6 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003822/0.2862, allocations: 132.7 kB / 486.7 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002633/0.2865, allocations: 191.4 kB / 486.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of SimCode: time 6.12e-07/0.2865, allocations: 4 kB / 486.9 MB, free: 11.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.221/2.507, allocations: 12.12 MB / 499 MB, free: 15.2 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002397/2.508, allocations: 246.2 kB / 499.2 MB, free: 14.93 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.04/4.548, allocations: 4 kB / 499.2 MB, free: 14.93 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/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)