Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.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: translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009809/0.0009809, allocations: 174.1 kB / 16.07 MB, free: 5.723 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.236/1.236, 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.0007192/0.0007192, allocations: 91.64 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.1685/0.1685, allocations: 38.07 MB / 356.9 MB, free: 1.738 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003145/0.0003147, allocations: 8 kB / 423.3 MB, free: 38 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.226/0.2263, allocations: 56.33 MB / 479.6 MB, free: 9.234 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier): time 0.005425/0.2318, allocations: 6.339 MB / 486 MB, free: 5.004 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.2341, allocations: 1.645 MB / 487.6 MB, free: 3.824 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003494/0.2345, allocations: 41.09 kB / 487.7 MB, free: 3.805 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004279/0.2349, allocations: 142.3 kB / 487.8 MB, free: 3.734 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008248/0.2358, allocations: 432.8 kB / 488.2 MB, free: 3.508 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005042/0.2363, allocations: 201.5 kB / 488.4 MB, free: 3.41 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001343/0.2376, allocations: 1.273 MB / 489.7 MB, free: 2.953 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003685/0.238, allocations: 287.4 kB / 490 MB, free: 2.844 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005593/0.2386, allocations: 373.4 kB / 490.3 MB, free: 2.707 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007516/0.2394, allocations: 0.5055 MB / 490.8 MB, free: 2.551 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 8.026e-05/0.2394, allocations: 38.62 kB / 490.9 MB, free: 2.543 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.2396, allocations: 32.75 kB / 490.9 MB, free: 2.543 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000299/0.2399, allocations: 272.1 kB / 491.2 MB, free: 2.473 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003425/0.2402, allocations: 329.2 kB / 491.5 MB, free: 2.285 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007525/0.241, allocations: 0.6427 MB / 492.1 MB, free: 2.145 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.241, allocations: 0.75 kB / 492.1 MB, free: 2.145 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.241, allocations: 0 / 492.1 MB, free: 2.145 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.241, allocations: 1.25 kB / 492.1 MB, free: 2.145 MB / 314.7 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.001657/0.2427, allocations: 0.903 MB / 493 MB, free: 1.539 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.2428, allocations: 10.28 kB / 493 MB, free: 1.539 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001276/0.2429, allocations: 71.31 kB / 493.1 MB, free: 1.504 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008269/0.2437, allocations: 0.5506 MB / 493.7 MB, free: 1.137 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001432/0.2439, allocations: 122.2 kB / 493.8 MB, free: 1.047 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.14e-05/0.244, allocations: 59.66 kB / 493.8 MB, free: 1.023 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001351/0.2453, allocations: 0.7865 MB / 494.6 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.2454, allocations: 1.062 kB / 494.6 MB, free: 0.6797 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.589e-05/0.2454, allocations: 21.5 kB / 494.7 MB, free: 0.6641 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001067/0.2455, allocations: 34.86 kB / 494.7 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.247, allocations: 0.7542 MB / 495.4 MB, free: 448 kB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003768/0.2508, allocations: 2.63 MB / 498.1 MB, free: 14.82 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001551/0.2523, allocations: 0.8463 MB / 498.9 MB, free: 14.36 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000677/0.253, allocations: 417.7 kB / 499.3 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.92e-05/0.2531, allocations: 5.531 kB / 499.3 MB, free: 14.15 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.2531, allocations: 41.88 kB / 499.4 MB, free: 14.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 2.114e-06/0.2531, allocations: 0 / 499.4 MB, free: 14.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=51): time 0.004061/0.2572, allocations: 2.214 MB / 0.4898 GB, free: 12.68 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.2572, allocations: 90.39 kB / 0.4899 GB, free: 12.57 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004373/0.2577, allocations: 401.3 kB / 0.4903 GB, free: 12.33 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 4.068e-05/0.2577, allocations: 35.89 kB / 0.4903 GB, free: 12.29 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001753/0.2579, allocations: 290.8 kB / 0.4906 GB, free: 12.03 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001312/0.258, allocations: 179 kB / 0.4908 GB, free: 11.87 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.244e-05/0.2581, allocations: 10.16 kB / 0.4908 GB, free: 11.86 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.2582, allocations: 359.3 kB / 0.4911 GB, free: 11.52 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005494/0.2588, allocations: 286.4 kB / 0.4914 GB, free: 11.39 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005866/0.2594, allocations: 399.9 kB / 0.4918 GB, free: 11.12 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001183/0.2606, allocations: 0.6816 MB / 0.4925 GB, free: 10.71 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2606, allocations: 1.062 kB / 0.4925 GB, free: 10.71 MB / 330.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001531/0.2621, allocations: 0.8996 MB / 0.4933 GB, free: 10.2 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.2622, allocations: 5.375 kB / 0.4933 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.2622, allocations: 3.469 kB / 0.4933 GB, free: 10.2 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000244/0.2624, allocations: 76.11 kB / 0.4934 GB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001559/0.264, allocations: 396.7 kB / 0.4938 GB, free: 10.05 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005314/0.2693, allocations: 6.182 MB / 0.4998 GB, free: 4.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000495/0.2698, allocations: 47.45 kB / 0.4999 GB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.484e-05/0.2699, allocations: 27.23 kB / 0.4999 GB, free: 4.078 MB / 330.7 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.0004029/0.2703, allocations: 233.9 kB / 0.5001 GB, free: 3.891 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.129e-05/0.2704, allocations: 50.75 kB / 0.5002 GB, free: 3.863 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001503/0.2719, allocations: 0.8574 MB / 0.501 GB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.2719, allocations: 6.594 kB / 0.501 GB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.2719, allocations: 1.312 kB / 0.501 GB, free: 3.332 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.155e-06/0.2719, allocations: 3.984 kB / 0.501 GB, free: 3.328 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00274/0.2747, allocations: 1.721 MB / 0.5027 GB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.2747, allocations: 0 / 0.5027 GB, free: 2.051 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001662/0.2764, allocations: 427.7 kB / 0.5031 GB, free: 1.633 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002535/0.2766, allocations: 93.56 kB / 0.5032 GB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.03e-05/0.2767, allocations: 12 kB / 0.5032 GB, free: 1.523 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001884/0.2786, allocations: 2.891 MB / 0.506 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.2786, allocations: 7.969 kB / 0.506 GB, free: 14.36 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001996/0.2806, allocations: 1.355 MB / 0.5074 GB, free: 12.94 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001126/0.2807, allocations: 124.5 kB / 0.5075 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.846e-05/0.2808, allocations: 15.98 kB / 0.5075 GB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003448/0.2812, allocations: 47.95 kB / 0.5075 GB, free: 12.74 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001109/0.2813, allocations: 47.88 kB / 0.5076 GB, free: 12.69 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.432e-05/0.2813, allocations: 12 kB / 0.5076 GB, free: 12.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002871/0.2816, allocations: 291.1 kB / 0.5079 GB, free: 12.4 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2816, allocations: 0 / 0.5079 GB, free: 12.4 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000617/0.2822, allocations: 148 kB / 0.508 GB, free: 12.25 MB / 346.7 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.0001211/0.2824, allocations: 103.2 kB / 0.5081 GB, free: 12.14 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.2849, allocations: 1.195 MB / 0.5093 GB, free: 10.92 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.285, allocations: 8.375 kB / 0.5093 GB, free: 10.91 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001855/0.2868, allocations: 0.8913 MB / 0.5102 GB, free: 9.992 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008015/0.2876, allocations: 126 kB / 0.5103 GB, free: 9.867 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003051/0.2907, allocations: 1.937 MB / 0.5122 GB, free: 7.887 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005093/0.2912, allocations: 0.9486 MB / 0.5131 GB, free: 6.91 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001685/0.2914, allocations: 43.44 kB / 0.5131 GB, free: 6.867 MB / 346.7 MB Notification: Performance of SimCode: time 4.91e-07/0.2914, allocations: 0 / 0.5131 GB, free: 6.867 MB / 346.7 MB Notification: Performance of Templates: time 0.01754/0.309, allocations: 16.63 MB / 0.5294 GB, free: 6.223 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.sim & ./PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.AC1ph_DC.Inverters.Rectifier.pipe 2>&1)