Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002075/0.002075, allocations: 110.5 kB / 17.28 MB, free: 6.074 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.002967/0.002967, allocations: 189.4 kB / 18.21 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.999/1.999, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.3029/0.3029, allocations: 38.03 MB / 330 MB, free: 8.977 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002353/0.002353, allocations: 65.91 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1828/0.1852, allocations: 58.06 MB / 457 MB, free: 8.418 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier): time 0.01319/0.1985, allocations: 7.396 MB / 464.4 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.004838/0.2034, allocations: 1.749 MB / 466.1 MB, free: 15.23 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009786/0.2045, allocations: 47.69 kB / 466.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007718/0.2053, allocations: 127.2 kB / 466.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001425/0.2068, allocations: 390.3 kB / 466.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000772/0.2075, allocations: 183.7 kB / 466.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001733/0.2093, allocations: 1.126 MB / 468 MB, free: 13.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006417/0.2099, allocations: 348.6 kB / 468.3 MB, free: 13.02 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009094/0.2109, allocations: 474.2 kB / 468.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001128/0.212, allocations: 0.5763 MB / 469.4 MB, free: 11.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001421/0.2122, allocations: 64 kB / 469.4 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.2124, allocations: 68 kB / 469.5 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004673/0.2128, allocations: 319.2 kB / 469.8 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005038/0.2134, allocations: 374.3 kB / 470.2 MB, free: 11.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009734/0.2143, allocations: 0.6821 MB / 470.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.2144, allocations: 0 / 470.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.2144, allocations: 4 kB / 470.9 MB, free: 10.48 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.354e-05/0.2144, allocations: 0 / 470.9 MB, free: 10.48 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002834/0.2172, allocations: 1.019 MB / 471.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.94e-05/0.2173, allocations: 15.89 kB / 471.9 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002075/0.2175, allocations: 76 kB / 472 MB, free: 9.316 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.2188, allocations: 0.5535 MB / 472.5 MB, free: 8.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002486/0.2191, allocations: 124.8 kB / 472.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001338/0.2192, allocations: 52 kB / 472.7 MB, free: 8.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001943/0.2212, allocations: 0.785 MB / 473.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.485e-05/0.2212, allocations: 0 / 473.5 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.247e-05/0.2213, allocations: 23.94 kB / 473.5 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000172/0.2215, allocations: 36.97 kB / 473.5 MB, free: 7.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00197/0.2235, allocations: 0.6908 MB / 474.2 MB, free: 6.965 MB / 350.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005892/0.2294, allocations: 2.712 MB / 476.9 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002537/0.232, allocations: 0.8827 MB / 477.8 MB, free: 3.211 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000816/0.2328, allocations: 327 kB / 478.2 MB, free: 2.887 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.856e-05/0.2328, allocations: 7.984 kB / 478.2 MB, free: 2.879 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.49e-05/0.2329, allocations: 42.5 kB / 478.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 3.226e-06/0.2329, allocations: 0 / 478.2 MB, free: 2.828 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.005477/0.2384, allocations: 1.937 MB / 480.1 MB, free: 0.7734 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.65e-05/0.2385, allocations: 85.05 kB / 480.2 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006925/0.2392, allocations: 425.9 kB / 480.6 MB, free: 256 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.049e-05/0.2393, allocations: 37.7 kB / 480.7 MB, free: 212 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002987/0.2396, allocations: 312.2 kB / 481 MB, free: 15.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.2398, allocations: 138 kB / 481.1 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001975/0.24, allocations: 82.25 kB / 481.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002008/0.2402, allocations: 362.8 kB / 481.5 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006267/0.2408, allocations: 241 kB / 481.8 MB, free: 15.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000716/0.2415, allocations: 350.3 kB / 482.1 MB, free: 14.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001318/0.2429, allocations: 0.5822 MB / 482.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.386e-06/0.2429, allocations: 0 / 482.7 MB, free: 14.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.001842/0.2447, allocations: 0.7882 MB / 483.5 MB, free: 13.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.681e-05/0.2448, allocations: 12 kB / 483.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.24e-05/0.2448, allocations: 4 kB / 483.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003341/0.2451, allocations: 69.67 kB / 483.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001856/0.247, allocations: 295.5 kB / 483.9 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007724/0.2547, allocations: 6.508 MB / 490.4 MB, free: 5.793 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000629/0.2554, allocations: 31.97 kB / 490.4 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.882e-05/0.2555, allocations: 20 kB / 490.4 MB, free: 5.742 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (54): * Single equations (assignments): 50 * 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.0004964/0.256, allocations: 241.7 kB / 490.7 MB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.2561, allocations: 47.44 kB / 490.7 MB, free: 5.449 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001786/0.2579, allocations: 0.7373 MB / 491.4 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.258, allocations: 4 kB / 491.5 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.258, allocations: 0 / 491.5 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.254e-06/0.258, allocations: 0 / 491.5 MB, free: 4.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003629/0.2616, allocations: 1.502 MB / 493 MB, free: 3.086 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.031e-06/0.2616, allocations: 4.031 kB / 493 MB, free: 3.082 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002439/0.2641, allocations: 295.6 kB / 493.2 MB, free: 2.793 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004248/0.2645, allocations: 93.53 kB / 493.3 MB, free: 2.695 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.945e-05/0.2646, allocations: 12 kB / 493.3 MB, free: 2.684 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003426/0.268, allocations: 3.161 MB / 496.5 MB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.243e-06/0.2681, allocations: 4.188 kB / 496.5 MB, free: 15.23 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002862/0.271, allocations: 1.117 MB / 497.6 MB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002065/0.2712, allocations: 120.5 kB / 497.7 MB, free: 13.93 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001014/0.2713, allocations: 12.03 kB / 497.8 MB, free: 13.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005048/0.2718, allocations: 39.91 kB / 497.8 MB, free: 13.88 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001683/0.272, allocations: 39.88 kB / 497.8 MB, free: 13.84 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.033e-05/0.2721, allocations: 12 kB / 497.8 MB, free: 13.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000528/0.2726, allocations: 295.1 kB / 498.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of sort global known variables: time 7.41e-07/0.2726, allocations: 0 / 498.1 MB, free: 13.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001043/0.2737, allocations: 136 kB / 498.3 MB, free: 13.41 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (39): * Single equations (assignments): 36 * 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.0002017/0.2739, allocations: 111.2 kB / 498.4 MB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004023/0.2779, allocations: 1.047 MB / 499.4 MB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2779, allocations: 0 / 499.4 MB, free: 12.22 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00279/0.2807, allocations: 0.7206 MB / 0.4884 GB, free: 11.47 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001284/0.282, allocations: 147.3 kB / 0.4886 GB, free: 11.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004288/0.2864, allocations: 1.712 MB / 0.4902 GB, free: 9.586 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.2874, allocations: 0.9448 MB / 0.4912 GB, free: 8.617 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002395/0.2876, allocations: 39.44 kB / 0.4912 GB, free: 8.582 MB / 382.1 MB Notification: Performance of SimCode: time 1.313e-06/0.2876, allocations: 0 / 0.4912 GB, free: 8.582 MB / 382.1 MB Notification: Performance of Templates: time 0.03139/0.319, allocations: 16.84 MB / 0.5076 GB, free: 7.758 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Rectifier.pipe 2>&1)