Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Inverters.Rectifier,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001289/0.001289, allocations: 174.6 kB / 16.08 MB, free: 5.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.243/1.243, allocations: 205.4 MB / 222.2 MB, free: 9.023 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006885/0.0006885, allocations: 91.02 kB / 270.6 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1571/0.1571, allocations: 38.08 MB / 356.9 MB, free: 1.723 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.000333, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2187, allocations: 56.32 MB / 479.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Inverters.Rectifier): time 0.005481/0.2242, allocations: 6.742 MB / 486.5 MB, free: 4.703 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002943/0.2271, allocations: 2.28 MB / 488.8 MB, free: 3.09 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003548/0.2275, allocations: 38.25 kB / 488.8 MB, free: 3.074 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004508/0.228, allocations: 160.9 kB / 489 MB, free: 2.992 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001071/0.2291, allocations: 0.5572 MB / 489.5 MB, free: 2.719 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007771/0.2299, allocations: 338.6 kB / 489.8 MB, free: 2.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001368/0.2312, allocations: 1.475 MB / 491.3 MB, free: 2.031 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001168/0.2324, allocations: 0.9463 MB / 492.3 MB, free: 1.496 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005804/0.233, allocations: 441.2 kB / 492.7 MB, free: 1.336 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008423/0.2339, allocations: 0.7013 MB / 493.4 MB, free: 1.141 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001123/0.234, allocations: 56.12 kB / 493.5 MB, free: 1.133 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009979/0.235, allocations: 0.5921 MB / 494 MB, free: 0.9961 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004234/0.2354, allocations: 428.5 kB / 494.5 MB, free: 0.8789 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004564/0.2359, allocations: 476.6 kB / 494.9 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001203/0.2371, allocations: 1.141 MB / 496.1 MB, free: 400 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.2371, allocations: 0 / 496.1 MB, free: 400 kB / 314.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2371, allocations: 1 kB / 496.1 MB, free: 400 kB / 314.7 MB Notification: Performance of Transformations before backend: time 1.615e-05/0.2371, allocations: 0 / 496.1 MB, free: 400 kB / 314.7 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.002492/0.2396, allocations: 1.225 MB / 497.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.709e-05/0.2397, allocations: 10.31 kB / 497.3 MB, free: 15.57 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002018/0.2399, allocations: 142.8 kB / 497.4 MB, free: 15.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006427/0.2405, allocations: 138.3 kB / 497.6 MB, free: 15.39 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001097/0.2416, allocations: 0.6693 MB / 498.3 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002231/0.2419, allocations: 185.2 kB / 498.4 MB, free: 14.74 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001826/0.2421, allocations: 78.94 kB / 498.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002337/0.2444, allocations: 1.426 MB / 499.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.283e-05/0.2445, allocations: 1.844 kB / 499.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.593e-05/0.2446, allocations: 35.52 kB / 500 MB, free: 13.85 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002073/0.2448, allocations: 86.06 kB / 0.4883 GB, free: 13.82 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002627/0.2474, allocations: 1.563 MB / 0.4899 GB, free: 13.1 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006601/0.254, allocations: 4.456 MB / 0.4942 GB, free: 9.965 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002266/0.2563, allocations: 1.254 MB / 0.4954 GB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001269/0.2576, allocations: 0.8035 MB / 0.4962 GB, free: 8.957 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.811e-05/0.2577, allocations: 9.469 kB / 0.4962 GB, free: 8.953 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.214e-05/0.2577, allocations: 46.56 kB / 0.4963 GB, free: 8.902 MB / 330.7 MB Notification: Performance of pre-optimization done (n=101): time 3.055e-06/0.2577, allocations: 0 / 0.4963 GB, free: 8.902 MB / 330.7 MB Notification: Performance of matching and sorting (n=102): time 0.006559/0.2643, allocations: 3.963 MB / 0.5001 GB, free: 5.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.877e-05/0.2643, allocations: 90.05 kB / 0.5002 GB, free: 5.414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.2648, allocations: 401.8 kB / 0.5006 GB, free: 5.016 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 7.238e-05/0.2648, allocations: 49.62 kB / 0.5007 GB, free: 4.961 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.265, allocations: 340.2 kB / 0.501 GB, free: 4.621 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/0.2653, allocations: 346.9 kB / 0.5013 GB, free: 4.277 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.787e-05/0.2654, allocations: 20 kB / 0.5013 GB, free: 4.258 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2655, allocations: 382.8 kB / 0.5017 GB, free: 3.875 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.2665, allocations: 0.6071 MB / 0.5023 GB, free: 3.266 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001092/0.2676, allocations: 0.7659 MB / 0.503 GB, free: 2.453 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002169/0.2698, allocations: 1.434 MB / 0.5044 GB, free: 0.9727 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2698, allocations: 0 / 0.5044 GB, free: 0.9727 MB / 330.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002578/0.2724, allocations: 1.643 MB / 0.506 GB, free: 15.3 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.049e-05/0.2724, allocations: 8 kB / 0.5061 GB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.2724, allocations: 4 kB / 0.5061 GB, free: 15.29 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001377/0.2726, allocations: 41.03 kB / 0.5061 GB, free: 15.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002548/0.2751, allocations: 0.632 MB / 0.5067 GB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006085/0.2812, allocations: 6.403 MB / 0.513 GB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008192/0.2821, allocations: 91.98 kB / 0.5131 GB, free: 7.598 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.413e-05/0.2822, allocations: 32 kB / 0.5131 GB, free: 7.566 MB / 346.7 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 (linear and non-linear blocks): 3 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 3 {1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005317/0.2827, allocations: 321.4 kB / 0.5134 GB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001508/0.2829, allocations: 71.08 kB / 0.5135 GB, free: 7.172 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002683/0.2856, allocations: 1.631 MB / 0.5151 GB, free: 5.512 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.37e-05/0.2856, allocations: 27.97 kB / 0.5151 GB, free: 5.484 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.2856, allocations: 4 kB / 0.5151 GB, free: 5.48 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.798e-06/0.2856, allocations: 7.984 kB / 0.5151 GB, free: 5.473 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00437/0.29, allocations: 2.908 MB / 0.5179 GB, free: 2.461 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.502e-05/0.29, allocations: 4 kB / 0.5179 GB, free: 2.457 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002902/0.2929, allocations: 0.6908 MB / 0.5186 GB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.74e-05/0.2931, allocations: 36.84 kB / 0.5186 GB, free: 1.727 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.2931, allocations: 23.98 kB / 0.5187 GB, free: 1.703 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/0.2942, allocations: 1.47 MB / 0.5201 GB, free: 104 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/0.2942, allocations: 4 kB / 0.5201 GB, free: 100 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003876/0.2981, allocations: 2.612 MB / 0.5227 GB, free: 13.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001783/0.2983, allocations: 132.3 kB / 0.5228 GB, free: 13.27 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001032/0.2984, allocations: 23.98 kB / 0.5228 GB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005837/0.299, allocations: 83.91 kB / 0.5229 GB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002366/0.2992, allocations: 76.48 kB / 0.523 GB, free: 13.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.778e-05/0.2993, allocations: 23.98 kB / 0.523 GB, free: 13.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002961/0.2996, allocations: 275.1 kB / 0.5232 GB, free: 12.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2996, allocations: 0 / 0.5232 GB, free: 12.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008862/0.3005, allocations: 236 kB / 0.5235 GB, free: 12.57 MB / 362.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004278/0.3048, allocations: 3.219 MB / 0.5266 GB, free: 9.277 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004401/0.3092, allocations: 2.009 MB / 0.5286 GB, free: 7.25 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.669e-06/0.3092, allocations: 0 / 0.5286 GB, free: 7.25 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002928/0.3122, allocations: 1.323 MB / 0.5299 GB, free: 5.918 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001072/0.3133, allocations: 152.2 kB / 0.53 GB, free: 5.773 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01118/0.3244, allocations: 6.926 MB / 0.5368 GB, free: 14.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007116/0.3252, allocations: 1.084 MB / 0.5378 GB, free: 13.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005714/0.3258, allocations: 295.3 kB / 0.5381 GB, free: 13.3 MB / 378.7 MB Notification: Performance of SimCode: time 6.71e-07/0.3258, allocations: 0 / 0.5381 GB, free: 13.3 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.434/5.76, allocations: 25.42 MB / 0.5629 GB, free: 3.801 MB / 394.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-05 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Inverters_Rectifier.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Inverters.Rectifier.pipe 2>&1)